diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 14:19:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:23:20 +0200 |
commit | 7b4f643f4feb28fdc92b3da7a95d0f1c7286d01a (patch) | |
tree | 1c203e78d9b634df39ce312b1daa411616d4bc49 /svtools/source/misc | |
parent | c504780e7883e911916689c12709d64d78125422 (diff) |
loplugin:sequenceloop in svtools..svx
Change-Id: I81b54f6db69491492b2bc16f48b2296ad96e137d
Reviewed-on: https://gerrit.libreoffice.org/77529
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 4 | ||||
-rw-r--r-- | svtools/source/misc/imagemgr.cxx | 2 | ||||
-rw-r--r-- | svtools/source/misc/langtab.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index f9a131acc37e..f6dd90343726 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -854,13 +854,13 @@ OUString EmbeddedObjectRef::GetChartType() if( ! xDiagram.is()) return OUString(); uno::Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xDiagram, uno::UNO_QUERY_THROW ); - uno::Sequence< uno::Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems()); + const uno::Sequence< uno::Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems()); // IA2 CWS. Unused: int nCoordinateCount = aCooSysSeq.getLength(); bool bGetChartType = false; for( const auto& rCooSys : aCooSysSeq ) { uno::Reference< chart2::XChartTypeContainer > xCTCnt( rCooSys, uno::UNO_QUERY_THROW ); - uno::Sequence< uno::Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes()); + const uno::Sequence< uno::Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes()); int nDimesionCount = rCooSys->getDimension(); if( nDimesionCount == 3 ) Style += "3D "; diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index 9026b65e62d8..9941c5051db6 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -232,7 +232,7 @@ static OUString GetImageExtensionByFactory_Impl( const OUString& rURL ) if ( !aInternalType.isEmpty() && xAccess->hasByName( aInternalType ) ) { xAccess->getByName( aInternalType ) >>= aTypeProps; - for ( const css::beans::PropertyValue& rProp : aTypeProps ) + for ( const css::beans::PropertyValue& rProp : std::as_const(aTypeProps) ) { if (rProp.Name == "Extensions") { diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx index 62d31910da7d..c10561f8f87c 100644 --- a/svtools/source/misc/langtab.cxx +++ b/svtools/source/misc/langtab.cxx @@ -172,7 +172,7 @@ SvtLanguageTableImpl::SvtLanguageTableImpl() } auto xNA = officecfg::VCL::ExtraLanguages::get(); - uno::Sequence <OUString> rElementNames = xNA->getElementNames(); + const uno::Sequence <OUString> rElementNames = xNA->getElementNames(); for (const OUString& rBcp47 : rElementNames) { OUString aName; |