summaryrefslogtreecommitdiff
path: root/reportdesign/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 12:34:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:21:55 +0200
commitaea932b58bbb2346fb5c1bc02bcfed3e43dedabc (patch)
tree9ea2c3ea1327740b441753fdfe6438b7a66dd2a0 /reportdesign/source
parent39cc9ed863cee396e2bb31d38e1aa44d8c97ad6c (diff)
loplugin:sequenceloop in postprocess..reportdesign
Change-Id: I86b9174c37e4a347a3a8ac6c2707052167e6fdc0 Reviewed-on: https://gerrit.libreoffice.org/77522 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source')
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx2
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx4
-rw-r--r--reportdesign/source/ui/inspection/metadata.cxx2
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx2
4 files changed, 5 insertions, 5 deletions
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<OUString>();
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<report::XReportComponent> > aClones;
namedVal.Value >>= aClones;