summaryrefslogtreecommitdiff
path: root/sd/source/core/EffectMigration.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 11:16:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 13:05:02 +0200
commitff6e8c73adef7c86db12287948025954a4fc7746 (patch)
treeebd53edfbd8e6349b0dab9a92cedb9968a2454c9 /sd/source/core/EffectMigration.cxx
parentb2423a480785db6f4883d6314690b22b69d55c22 (diff)
loplugin:constvars in sccomp..sd
Change-Id: Ic4b2a1d23da80a5b0976692f490c29a7169be3ef Reviewed-on: https://gerrit.libreoffice.org/77793 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/core/EffectMigration.cxx')
-rw-r--r--sd/source/core/EffectMigration.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/core/EffectMigration.cxx b/sd/source/core/EffectMigration.cxx
index 7aa7be5fe62b..8f73d7bb8883 100644
--- a/sd/source/core/EffectMigration.cxx
+++ b/sd/source/core/EffectMigration.cxx
@@ -1125,7 +1125,7 @@ void EffectMigration::SetPresentationOrder( SvxShape* pShape, sal_Int32 nNewPos
std::vector< CustomAnimationEffectPtr > aEffects;
- for( auto& rIter : aEffectVector[nCurrentPos] )
+ for( const auto& rIter : aEffectVector[nCurrentPos] )
{
aEffects.push_back( *rIter );
rSequence.erase( rIter );
@@ -1164,7 +1164,7 @@ sal_Int32 EffectMigration::GetPresentationOrder( SvxShape* pShape )
Reference< XShape > xThis( pShape );
Reference< XShape > xCurrent;
- for( CustomAnimationEffectPtr& pEffect : rSequence )
+ for( const CustomAnimationEffectPtr& pEffect : rSequence )
{
if( !xCurrent.is() || pEffect->getTargetShape() != xCurrent )
{