From 85f4938719180e1e344b28c073f909df6f972f96 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Jul 2022 09:51:36 +0200 Subject: clang-tidy modernize-pass-by-value in svx Change-Id: Iedd87d321f4d161574df87629fdd6c7714ff31c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137248 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/styles/ColorSets.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'svx/source/styles') diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx index 240b65e2b10a..0dde00e219c0 100644 --- a/svx/source/styles/ColorSets.cxx +++ b/svx/source/styles/ColorSets.cxx @@ -26,6 +26,7 @@ #include #include #include +#include using namespace com::sun::star; @@ -125,8 +126,8 @@ void UpdateSdrObject(svx::Theme* pTheme, SdrObject* pObject) namespace svx { -ColorSet::ColorSet(OUString const & aColorSetName) - : maColorSetName(aColorSetName) +ColorSet::ColorSet(OUString aColorSetName) + : maColorSetName(std::move(aColorSetName)) , maColors(12) {} @@ -233,8 +234,8 @@ const ColorSet& ColorSets::getColorSet(std::u16string_view rName) return maColorSets[0]; } -Theme::Theme(const OUString& rName) - : maName(rName) +Theme::Theme(OUString aName) + : maName(std::move(aName)) { } -- cgit