summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/CustomAnimationEffect.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx4
-rw-r--r--sd/source/ui/view/drviews4.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx
index 3e7d26ff8065..f3a4291f9ea6 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -2409,7 +2409,7 @@ void EffectSequenceHelper::updateTextGroups()
maGroupMap.clear();
// first create all the groups
- for( CustomAnimationEffectPtr& pEffect : maEffects )
+ for( const CustomAnimationEffectPtr& pEffect : maEffects )
{
const sal_Int32 nGroupId = pEffect->getGroupId();
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 13a4fb652e29..a6bfbdfab8d7 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -1015,7 +1015,7 @@ IMPL_LINK_NOARG(CustomAnimationList, PostCollapseHdl, void*, void)
mxTreeView->unselect_all();
// Restore selection state for entries which are still visible
- for (auto &pEntry : lastSelectedEntries)
+ for (const auto &pEntry : lastSelectedEntries)
{
if (weld::IsEntryVisible(*mxTreeView, *pEntry))
mxTreeView->select(*pEntry);
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 8bae65604b1a..f96d2f8f7133 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -2204,7 +2204,7 @@ sal_Int32 CustomAnimationPane::fillAnimationLB( bool bHasText )
mxLBAnimation->set_text_emphasis(mnFreeformPathPos, false, 0);
}
- for (PresetCategoryPtr& pCategory : rCategoryList)
+ for (const PresetCategoryPtr& pCategory : rCategoryList)
{
if( pCategory )
{
@@ -2215,7 +2215,7 @@ sal_Int32 CustomAnimationPane::fillAnimationLB( bool bHasText )
std::vector< CustomAnimationPresetPtr > aSortedVector =
pCategory->maEffects;
- for( CustomAnimationPresetPtr& pDescriptor : aSortedVector )
+ for( const CustomAnimationPresetPtr& pDescriptor : aSortedVector )
{
// ( !isTextOnly || ( isTextOnly && bHasText ) ) <=> !isTextOnly || bHasText
if( pDescriptor && ( !pDescriptor->isTextOnly() || bHasText ) )
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index 7cf042178d73..bcfcc452713d 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -123,7 +123,7 @@ void DrawViewShell::DeleteActualPage()
pagesToDelete.push_back(xPage);
}
}
- for (auto &xPage: pagesToDelete)
+ for (const auto &xPage: pagesToDelete)
{
xPages->remove(xPage);
}