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 /svx/source/xoutdev | |
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 'svx/source/xoutdev')
-rw-r--r-- | svx/source/xoutdev/xattr.cxx | 6 | ||||
-rw-r--r-- | svx/source/xoutdev/xattrbmp.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index 9c4727447c3f..af477725dc23 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -742,7 +742,7 @@ bool XLineDashItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) css::drawing::LineDash aLineDash; OUString aName; bool bLineDash( false ); - for ( const auto& rProp : aPropSeq ) + for ( const auto& rProp : std::as_const(aPropSeq) ) { if ( rProp.Name == "Name" ) rProp.Value >>= aName; @@ -2105,7 +2105,7 @@ bool XFillGradientItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId css::awt::Gradient aGradient2; OUString aName; bool bGradient( false ); - for ( const auto& rProp : aPropSeq ) + for ( const auto& rProp : std::as_const(aPropSeq) ) { if ( rProp.Name == "Name" ) rProp.Value >>= aName; @@ -2498,7 +2498,7 @@ bool XFillHatchItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) css::drawing::Hatch aUnoHatch; OUString aName; bool bHatch( false ); - for ( const auto& rProp : aPropSeq ) + for ( const auto& rProp : std::as_const(aPropSeq) ) { if ( rProp.Name == "Name" ) rProp.Value >>= aName; diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx index bb284e903e36..448005de3879 100644 --- a/svx/source/xoutdev/xattrbmp.cxx +++ b/svx/source/xoutdev/xattrbmp.cxx @@ -265,7 +265,7 @@ bool XFillBitmapItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) uno::Sequence< beans::PropertyValue > aPropSeq; if( rVal >>= aPropSeq ) { - for ( const auto& rProp : aPropSeq ) + for ( const auto& rProp : std::as_const(aPropSeq) ) { if ( rProp.Name == "Name" ) bSetName = (rProp.Value >>= aName); |