summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linguistic/misc.hxx2
-rw-r--r--linguistic/source/misc.cxx2
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() );