summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-13 08:38:29 +0200
committerNoel Grandin <noel@peralex.com>2014-03-13 08:39:26 +0200
commit78a2020846b855ed925ab88f06fa70a282a75e5a (patch)
treedd316d41417704fc02387700f2b664b55945773b /vcl/inc
parent39c7532933bb4f1630e821a2a38b213eb05dcc59 (diff)
vcl: prefer passing OUString and OString by reference
Change-Id: I6c2c6f597ca62c004ad7dc606cef3a3b10e810b6
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/graphite_features.hxx4
-rw-r--r--vcl/inc/outfont.hxx6
-rw-r--r--vcl/inc/unx/saldisp.hxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/vcl/inc/graphite_features.hxx b/vcl/inc/graphite_features.hxx
index 0202497ae95a..d1587fda0c14 100644
--- a/vcl/inc/graphite_features.hxx
+++ b/vcl/inc/graphite_features.hxx
@@ -41,8 +41,8 @@ namespace grutils
static const char FEAT_PREFIX;
static const char FEAT_SEPARATOR;
static const char FEAT_ID_VALUE_SEPARATOR;
- GrFeatureParser(const gr_face * face, const OString features, const OString lang);
- GrFeatureParser(const gr_face * face, const OString lang);
+ GrFeatureParser(const gr_face * face, const OString& features, const OString& lang);
+ GrFeatureParser(const gr_face * face, const OString& lang);
~GrFeatureParser();
//size_t getFontFeatures(gr::FeatureSetting settings[MAX_FEATURES]) const;
bool parseErrors() { return mbErrors; };
diff --git a/vcl/inc/outfont.hxx b/vcl/inc/outfont.hxx
index 77a35205a040..a6d4def4e547 100644
--- a/vcl/inc/outfont.hxx
+++ b/vcl/inc/outfont.hxx
@@ -61,9 +61,9 @@ public: // TODO: create matching interface class
FontPitch GetPitch() const { return mePitch; }
FontWidth GetWidthType() const { return meWidthType; }
bool IsSymbolFont() const { return mbSymbolFlag; }
- void SetFamilyName(const OUString sFamilyName) { maName = sFamilyName; }
- void SetStyleName( const OUString sStyleName) { maStyleName = sStyleName; }
- void SetFamilyType(const FontFamily eFontFamily) { meFamily = eFontFamily; }
+ void SetFamilyName(const OUString& sFamilyName) { maName = sFamilyName; }
+ void SetStyleName( const OUString& sStyleName) { maStyleName = sStyleName; }
+ void SetFamilyType(const FontFamily eFontFamily) { meFamily = eFontFamily; }
void SetPitch(const FontPitch ePitch ) { mePitch = ePitch; }
void SetItalic(const FontItalic eItalic ) { meItalic = eItalic; }
void SetWeight(const FontWeight eWeight ) { meWeight = eWeight; }
diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx
index 9b98a762175d..5d179e71b89a 100644
--- a/vcl/inc/unx/saldisp.hxx
+++ b/vcl/inc/unx/saldisp.hxx
@@ -409,7 +409,7 @@ public:
// get foreign key names
namespace vcl_sal {
OUString getKeysymReplacementName(
- OUString pLang,
+ const OUString& pLang,
KeySym nSymbol );
}