summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-06 19:00:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-08 08:31:45 +0200
commit40b1e5d40667e5863aa213a31fa1b06085bd407a (patch)
treef4e0fe96260e6bd52763af539729785853ba3734 /include/vcl
parent107af098311beafaadb343c5a3634389f56006a0 (diff)
loplugin:passstuffbyref
Change-Id: I6e6c47020073ec183c6c8ff9cd026a0bec23b177 Reviewed-on: https://gerrit.libreoffice.org/57088 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/font/FeatureParser.hxx7
-rw-r--r--include/vcl/weld.hxx2
2 files changed, 6 insertions, 3 deletions
diff --git a/include/vcl/font/FeatureParser.hxx b/include/vcl/font/FeatureParser.hxx
index 595bb0354b79..351caf19c7b7 100644
--- a/include/vcl/font/FeatureParser.hxx
+++ b/include/vcl/font/FeatureParser.hxx
@@ -37,9 +37,12 @@ private:
public:
FeatureParser(OUString const& sFontName);
- OUString getLanguage() const { return m_sLanguage; }
+ OUString const& getLanguage() const { return m_sLanguage; }
- std::vector<std::pair<sal_uInt32, sal_uInt32>> getFeatures() const { return m_aFeatures; }
+ std::vector<std::pair<sal_uInt32, sal_uInt32>> const& getFeatures() const
+ {
+ return m_aFeatures;
+ }
std::unordered_map<sal_uInt32, sal_uInt32> getFeaturesMap();
};
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 39ee0c867886..a7f2ab8d0543 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -286,7 +286,7 @@ public:
}
void save_value() { m_sSavedValue = get_active_text(); }
- OUString get_saved_value() const { return m_sSavedValue; }
+ OUString const& get_saved_value() const { return m_sSavedValue; }
bool get_value_changed_from_saved() const { return m_sSavedValue != get_active_text(); }
};