From aea932b58bbb2346fb5c1bc02bcfed3e43dedabc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 15 Aug 2019 12:34:46 +0200 Subject: loplugin:sequenceloop in postprocess..reportdesign Change-Id: I86b9174c37e4a347a3a8ac6c2707052167e6fdc0 Reviewed-on: https://gerrit.libreoffice.org/77522 Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/source/core/api/ReportDefinition.cxx | 2 +- reportdesign/source/ui/inspection/GeometryHandler.cxx | 4 ++-- reportdesign/source/ui/inspection/metadata.cxx | 2 +- reportdesign/source/ui/report/ViewsWindow.cxx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index dcb0fb6eb1d4..1396c93ebb2e 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2475,7 +2475,7 @@ OUString OReportDefinition::getDocumentBaseURL() const ::osl::MutexGuard aGuard(m_aMutex); ::connectivity::checkDisposed(ReportDefinitionBase::rBHelper.bDisposed); - for (beans::PropertyValue const& it : m_pImpl->m_aArgs) + for (beans::PropertyValue const& it : std::as_const(m_pImpl->m_aArgs)) { if (it.Name == "DocumentBaseURL") return it.Value.get(); diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx index f6135f5307f2..37631941ce21 100644 --- a/reportdesign/source/ui/inspection/GeometryHandler.cxx +++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx @@ -803,11 +803,11 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const } else { - for (auto const& it : m_aFieldNames) + for (auto const& it : std::as_const(m_aFieldNames)) { xListControl->appendListEntry(it); } - for (auto const& it : m_aParamNames) + for (auto const& it : std::as_const(m_aParamNames)) { xListControl->appendListEntry(it); } diff --git a/reportdesign/source/ui/inspection/metadata.cxx b/reportdesign/source/ui/inspection/metadata.cxx index db8ac3eb494f..14e4a3088871 100644 --- a/reportdesign/source/ui/inspection/metadata.cxx +++ b/reportdesign/source/ui/inspection/metadata.cxx @@ -226,7 +226,7 @@ namespace rptui void OPropertyInfoService::getExcludeProperties(::std::vector< beans::Property >& _rExcludeProperties,const css::uno::Reference< css::inspection::XPropertyHandler >& _xFormComponentHandler) { - uno::Sequence< beans::Property > aProps = _xFormComponentHandler->getSupportedProperties(); + const uno::Sequence< beans::Property > aProps = _xFormComponentHandler->getSupportedProperties(); static const OUStringLiteral pExcludeProperties[] = { "Enabled", diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx index 47afcfe630fe..f81db3a9a4bf 100644 --- a/reportdesign/source/ui/report/ViewsWindow.cxx +++ b/reportdesign/source/ui/report/ViewsWindow.cxx @@ -1227,7 +1227,7 @@ void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSe aNewPos.setY( 0 ); Point aPrevious; - for (beans::NamedValue const & namedVal : aAllreadyCopiedObjects) + for (beans::NamedValue const & namedVal : std::as_const(aAllreadyCopiedObjects)) { uno::Sequence< uno::Reference > aClones; namedVal.Value >>= aClones; -- cgit