diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-01-27 15:42:54 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-01-27 12:43:48 +0100 |
commit | 0fa827dbb2147d1d3850b2181eb6ab6a02a04500 (patch) | |
tree | 721d02c64c26365e605a2348fd1ff744c4dd8d29 /reportdesign | |
parent | db227dc7d032d642983c313ab74c34a301464c2a (diff) |
Drop std::as_const from css::uno::Sequence iterations
Obsoleted by commit 2484de6728bd11bb7949003d112f1ece2223c7a1 (Remove
non-const Sequence::begin()/end() in internal code, 2021-10-15) and
commit fb3c04bd1930eedacd406874e1a285d62bbf27d9 (Drop non-const
Sequence::operator[] in internal code, 2021-11-05).
Change-Id: Idbafef5d34c0d4771cbbf75b9db9712e504164cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162640
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'reportdesign')
6 files changed, 7 insertions, 7 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index f6723ddccc29..6d807911a8fb 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2474,7 +2474,7 @@ OUString OReportDefinition::getDocumentBaseURL() const ::osl::MutexGuard aGuard(m_aMutex); ::connectivity::checkDisposed(ReportDefinitionBase::rBHelper.bDisposed); - for (beans::PropertyValue const& it : std::as_const(m_pImpl->m_aArgs)) + for (beans::PropertyValue const& it : m_pImpl->m_aArgs) { if (it.Name == "DocumentBaseURL") return it.Value.get<OUString>(); diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx index 60784020b622..9a9a4d33a280 100644 --- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx +++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx @@ -370,7 +370,7 @@ void ExportDocumentHandler::exportTableRows() m_xDelegatee->endElement(sCell); } } - for(const auto& rColumn : std::as_const(m_aColumns)) + for (const auto& rColumn : m_aColumns) { OUString sFormula = "field:[" + rColumn + "]"; rtl::Reference<comphelper::AttributeList> pList = new comphelper::AttributeList(); diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx index 690d90ca1b17..48ff4ed2df12 100644 --- a/reportdesign/source/ui/dlg/Navigator.cxx +++ b/reportdesign/source/ui/dlg/Navigator.cxx @@ -360,7 +360,7 @@ void NavigatorTree::_selectionChanged( const lang::EventObject& aEvent ) } else { - for (const uno::Reference<report::XReportComponent>& rElem : std::as_const(aSelection)) + for (const uno::Reference<report::XReportComponent>& rElem : aSelection) { bool bEntry = find(rElem, *xEntry); if (bEntry && !m_xTreeView->is_selected(*xEntry)) diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx index 0ede3305aaa0..29fe406e53cb 100644 --- a/reportdesign/source/ui/inspection/GeometryHandler.cxx +++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx @@ -767,11 +767,11 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const } else { - for (auto const& it : std::as_const(m_aFieldNames)) + for (auto const& it : m_aFieldNames) { xListControl->appendListEntry(it); } - for (auto const& it : std::as_const(m_aParamNames)) + for (auto const& it : m_aParamNames) { xListControl->appendListEntry(it); } diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx index 09ccc044a3c4..e983c4bc214d 100644 --- a/reportdesign/source/ui/report/ReportSection.cxx +++ b/reportdesign/source/ui/report/ReportSection.cxx @@ -247,7 +247,7 @@ void OReportSection::Paste(const uno::Sequence< beans::NamedValue >& _aAllreadyC { uno::Sequence< uno::Reference<report::XReportComponent> > aCopies; rObject.Value >>= aCopies; - for (const uno::Reference<report::XReportComponent>& rCopy : std::as_const(aCopies)) + for (const uno::Reference<report::XReportComponent>& rCopy : aCopies) { SdrObject* pObject = SdrObject::getSdrObjectFromXShape( rCopy ); if ( pObject ) diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx index 7f48de10b08d..b6b4fe0b160b 100644 --- a/reportdesign/source/ui/report/ViewsWindow.cxx +++ b/reportdesign/source/ui/report/ViewsWindow.cxx @@ -1228,7 +1228,7 @@ void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSe aNewPos.setY( 0 ); Point aPrevious; - for (beans::NamedValue const & namedVal : std::as_const(aAllreadyCopiedObjects)) + for (beans::NamedValue const& namedVal : aAllreadyCopiedObjects) { uno::Sequence< uno::Reference<report::XReportComponent> > aClones; namedVal.Value >>= aClones; |