From e3df93d03c19bc75d1aeb340f056f57db3f4f46c Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 30 Aug 2016 22:47:36 +0200 Subject: [PATCH] return const& Change-Id: Ia36a6c13dab4c6dbdcff45bfa432835296eec868 --- include/linguistic/misc.hxx | 2 +- linguistic/source/misc.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx index 52f7a696533a..7ba3d2fa7a69 100644 --- a/include/linguistic/misc.hxx +++ b/include/linguistic/misc.hxx @@ -80,7 +80,7 @@ enum class CapType LNG_DLLPUBLIC ::osl::Mutex& GetLinguMutex(); -LocaleDataWrapper & GetLocaleDataWrapper( LanguageType nLang ); +const LocaleDataWrapper & GetLocaleDataWrapper( LanguageType nLang ); sal_Int32 LevDistance( const OUString &rTxt1, const OUString &rTxt2 ); diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index 29a057fbfb2b..37f20fb95df3 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -68,7 +68,7 @@ osl::Mutex & GetLinguMutex() return LinguMutex::get(); } -LocaleDataWrapper & GetLocaleDataWrapper( LanguageType nLang ) +const LocaleDataWrapper & GetLocaleDataWrapper( LanguageType nLang ) { static LocaleDataWrapper aLclDtaWrp( SvtSysLocale().GetLanguageTag() );