summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 14:19:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:23:20 +0200
commit7b4f643f4feb28fdc92b3da7a95d0f1c7286d01a (patch)
tree1c203e78d9b634df39ce312b1daa411616d4bc49 /svx/source/xoutdev
parentc504780e7883e911916689c12709d64d78125422 (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.cxx6
-rw-r--r--svx/source/xoutdev/xattrbmp.cxx2
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);