summaryrefslogtreecommitdiff
path: root/svx/source/styles
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-20 09:51:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-21 08:59:50 +0200
commit85f4938719180e1e344b28c073f909df6f972f96 (patch)
tree21aa235575692503cf2a2d40f0e63b7aad661b9f /svx/source/styles
parentcf69bb4f503eb8b3966d5caf825e0c05264a369e (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/styles')
-rw-r--r--svx/source/styles/ColorSets.cxx9
1 files changed, 5 insertions, 4 deletions
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 <svx/svdpage.hxx>
#include <svx/svditer.hxx>
#include <editeng/unoprnms.hxx>
+#include <utility>
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))
{
}