From 69b5f0b6579c6574a8fe68ab2a64208ec767db55 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 Mar 2022 21:53:47 +0200 Subject: loplugin:constparams Change-Id: I5f184f93dbdb414514855c85c9dc1624e7ec8636 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131337 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/styles/ColorSets.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx/source/styles') diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx index 4cd958d05f23..b1cb6fb34ca7 100644 --- a/svx/source/styles/ColorSets.cxx +++ b/svx/source/styles/ColorSets.cxx @@ -33,7 +33,7 @@ namespace { /// Updates a text portion to match a new color set, in case it already uses theme colors. void UpdateTextPortionColorSet(const uno::Reference& xPortion, - svx::ColorSet& rColorSet) + const svx::ColorSet& rColorSet) { sal_Int16 nCharColorTheme = -1; xPortion->getPropertyValue(UNO_NAME_EDIT_CHAR_COLOR_THEME) >>= nCharColorTheme; @@ -63,7 +63,7 @@ void UpdateTextPortionColorSet(const uno::Reference& xPorti uno::makeAny(static_cast(aColor))); } -void UpdateFillColorSet(const uno::Reference& xShape, svx::ColorSet& rColorSet) +void UpdateFillColorSet(const uno::Reference& xShape, const svx::ColorSet& rColorSet) { if (!xShape->getPropertySetInfo()->hasPropertyByName(UNO_NAME_FILLCOLOR_THEME)) { @@ -318,7 +318,7 @@ std::unique_ptr Theme::FromAny(const css::uno::Any& rVal) return pTheme; } -void Theme::UpdateSdrPage(SdrPage* pPage) +void Theme::UpdateSdrPage(const SdrPage* pPage) { for (size_t nObject = 0; nObject < pPage->GetObjCount(); ++nObject) { -- cgit