summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-29 14:47:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-29 17:37:58 +0200
commit27457150b1c85cbf7c084b0930a71b0106b8278b (patch)
tree747c59b83c1a9a25f16949bb8ca654ffa9ab2c51 /unotools
parent52b8697a1f6af99061984140ecbca36808ae4a55 (diff)
return by const& in LocaleDataWrapper
Change-Id: Id5075424867ae1017df9fa0cd2df802d529e32d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119666 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/localedatawrapper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx
index b6a286a07fc2..1793b8594eeb 100644
--- a/unotools/source/i18n/localedatawrapper.cxx
+++ b/unotools/source/i18n/localedatawrapper.cxx
@@ -269,7 +269,7 @@ css::i18n::ForbiddenCharacters LocaleDataWrapper::getForbiddenCharacters() const
return css::i18n::ForbiddenCharacters();
}
-css::uno::Sequence< css::lang::Locale > LocaleDataWrapper::getAllInstalledLocaleNames() const
+const css::uno::Sequence< css::lang::Locale > & LocaleDataWrapper::getAllInstalledLocaleNames() const
{
uno::Sequence< lang::Locale > &rInstalledLocales = gInstalledLocales;
@@ -290,7 +290,7 @@ css::uno::Sequence< css::lang::Locale > LocaleDataWrapper::getAllInstalledLocale
// --- Impl and helpers ----------------------------------------------------
// static
-css::uno::Sequence< css::lang::Locale > LocaleDataWrapper::getInstalledLocaleNames()
+const css::uno::Sequence< css::lang::Locale >& LocaleDataWrapper::getInstalledLocaleNames()
{
const uno::Sequence< lang::Locale > &rInstalledLocales = gInstalledLocales;
@@ -303,7 +303,7 @@ css::uno::Sequence< css::lang::Locale > LocaleDataWrapper::getInstalledLocaleNam
}
// static
-std::vector< LanguageType > LocaleDataWrapper::getInstalledLanguageTypes()
+const std::vector< LanguageType >& LocaleDataWrapper::getInstalledLanguageTypes()
{
std::vector< LanguageType > &rInstalledLanguageTypes = gInstalledLanguageTypes;