diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-18 09:22:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-27 06:48:25 +0000 |
commit | 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch) | |
tree | d1c8626818cbf26a699875ae2d82f751a1657e92 /i18nlangtag | |
parent | Don't Update() and Flush() status bar draws (diff) | |
download | core-508c95f1b655d9cfa6be37a5a9de9aff6fd383bf.tar.gz core-508c95f1b655d9cfa6be37a5a9de9aff6fd383bf.zip |
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c
Reviewed-on: https://gerrit.libreoffice.org/27317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index b34a5e93a8e4..f87fe583f64b 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -280,12 +280,12 @@ private: mutable bool mbCachedCountry : 1; mutable bool mbCachedVariants : 1; - const OUString & getBcp47() const; - OUString getLanguage() const; - OUString getScript() const; - OUString getCountry() const; + OUString const & getBcp47() const; + OUString const & getLanguage() const; + OUString const & getScript() const; + OUString const & getCountry() const; OUString getRegion() const; - OUString getVariants() const; + OUString const & getVariants() const; bool hasScript() const; bool isIsoLocale() const; @@ -996,7 +996,7 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const } -LanguageTag::ImplPtr LanguageTag::getImpl() const +LanguageTag::ImplPtr const & LanguageTag::getImpl() const { if (!mpImpl) { @@ -1802,7 +1802,7 @@ bool LanguageTag::isIsoScript( const OUString& rScript ) } -OUString LanguageTagImpl::getLanguage() const +OUString const & LanguageTagImpl::getLanguage() const { if (!mbCachedLanguage) { @@ -1824,7 +1824,7 @@ OUString LanguageTag::getLanguage() const } -OUString LanguageTagImpl::getScript() const +OUString const & LanguageTagImpl::getScript() const { if (!mbCachedScript) { @@ -1858,7 +1858,7 @@ OUString LanguageTag::getLanguageAndScript() const } -OUString LanguageTagImpl::getCountry() const +OUString const & LanguageTagImpl::getCountry() const { if (!mbCachedCountry) { @@ -1888,7 +1888,7 @@ OUString LanguageTagImpl::getRegion() const } -OUString LanguageTagImpl::getVariants() const +OUString const & LanguageTagImpl::getVariants() const { if (!mbCachedVariants) { |