diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-04-22 09:38:29 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-04-22 09:39:56 +0300 |
commit | 1a6c49e3d583519e3a010a7bcfe486d06e8d50c6 (patch) | |
tree | 20d235b1ab830c38241a35b808614cd8ef7efdfb | |
parent | 3cdc48dc9db54a123ee243913177827ca6629d0b (diff) |
WaE: passing 'class OUString' by value, rather pass by reference
Change-Id: I744425e079c426745e02056153707675311e58ca
-rw-r--r-- | sw/source/uibase/sidebar/ThemePanel.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/sidebar/ThemePanel.cxx b/sw/source/uibase/sidebar/ThemePanel.cxx index 9f86ff37db03..f4dcf25d8865 100644 --- a/sw/source/uibase/sidebar/ThemePanel.cxx +++ b/sw/source/uibase/sidebar/ThemePanel.cxx @@ -130,7 +130,7 @@ public: OUString maElementName; public: - StyleRedefinition(OUString aElementName) + StyleRedefinition(const OUString& aElementName) : maElementName(aElementName) {} @@ -158,7 +158,7 @@ class StyleSet std::vector<StyleRedefinition> maStyles; public: - StyleSet(OUString aName) + StyleSet(const OUString& aName) : maName(aName) , maStyles() {} @@ -168,7 +168,7 @@ public: maStyles.push_back(aRedefinition); } - StyleRedefinition* get(OUString aString) + StyleRedefinition* get(const OUString& aString) { for (size_t i = 0; i < maStyles.size(); i++) { @@ -307,7 +307,7 @@ std::vector<FontSet> initFontSets() return aFontSets; } -FontSet getFontSet(OUString& rFontVariant, std::vector<FontSet>& aFontSets) +FontSet getFontSet(const OUString& rFontVariant, std::vector<FontSet>& aFontSets) { for (size_t i = 0; i < aFontSets.size(); ++i) { @@ -348,7 +348,7 @@ std::vector<ColorSet> initColorSets() return aColorSets; } -ColorSet getColorSet(OUString& rColorVariant, std::vector<ColorSet>& aColorSets) +ColorSet getColorSet(const OUString& rColorVariant, std::vector<ColorSet>& aColorSets) { for (size_t i = 0; i < aColorSets.size(); ++i) { @@ -358,7 +358,7 @@ ColorSet getColorSet(OUString& rColorVariant, std::vector<ColorSet>& aColorSets) return aColorSets[0]; } -void applyTheme(SfxStyleSheetBasePool* pPool, OUString sFontSetName, OUString sColorSetName, StyleSet& rStyleSet) +void applyTheme(SfxStyleSheetBasePool* pPool, const OUString& sFontSetName, const OUString& sColorSetName, StyleSet& rStyleSet) { SwDocStyleSheet* pStyle; |