summaryrefslogtreecommitdiff
path: root/sd/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/core')
-rw-r--r--sd/source/core/CustomAnimationEffect.cxx2
-rw-r--r--sd/source/core/EffectMigration.cxx4
-rw-r--r--sd/source/core/sdpage2.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx
index a6f75ee9cdc0..102df7fb1f2f 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -2533,7 +2533,7 @@ void EffectSequenceHelper::setTextGrouping( const CustomAnimationTextGroupPtr& p
EffectSequence aEffects( pTextGroup->maEffects );
pTextGroup->reset();
- for( CustomAnimationEffectPtr& pEffect : aEffects )
+ for( const CustomAnimationEffectPtr& pEffect : aEffects )
{
if( pEffect->getTarget().getValueType() == ::cppu::UnoType<ParagraphTarget>::get() )
remove( pEffect );
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 )
{
diff --git a/sd/source/core/sdpage2.cxx b/sd/source/core/sdpage2.cxx
index a1e988d9c9d7..12691c5175a8 100644
--- a/sd/source/core/sdpage2.cxx
+++ b/sd/source/core/sdpage2.cxx
@@ -194,7 +194,7 @@ void SdPage::SetPresentationLayout(const OUString& rLayoutName,
std::vector<SfxStyleSheetBase*>::iterator iterOldOut = aOldOutlineStyles.begin();
- for (auto& rpOut : aOutlineStyles)
+ for (const auto& rpOut : aOutlineStyles)
{
SfxStyleSheet* pSheet = static_cast<SfxStyleSheet*>(rpOut);
SfxStyleSheet* pOldSheet = static_cast<SfxStyleSheet*>(*iterOldOut);
@@ -264,7 +264,7 @@ void SdPage::EndListenOutlineText()
std::vector<SfxStyleSheetBase*> aOutlineStyles;
pSPool->CreateOutlineSheetList(aTrueLayoutName,aOutlineStyles);
- for (auto& rpStyle : aOutlineStyles)
+ for (const auto& rpStyle : aOutlineStyles)
{
SfxStyleSheet *pSheet = static_cast<SfxStyleSheet*>(rpStyle);
pOutlineTextObj->EndListening(*pSheet);