summaryrefslogtreecommitdiff
path: root/linguistic/source/dicimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source/dicimp.cxx')
-rw-r--r--linguistic/source/dicimp.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 40c51e3356e1..dafa95d7b6fa 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -766,15 +766,14 @@ Locale SAL_CALL DictionaryNeo::getLocale( )
throw(RuntimeException)
{
MutexGuard aGuard( GetLinguMutex() );
- Locale aRes;
- return LanguageToLocale( aRes, nLanguage );
+ return LanguageTag( nLanguage ).getLocale();
}
void SAL_CALL DictionaryNeo::setLocale( const Locale& aLocale )
throw(RuntimeException)
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Int16 nLanguageP = LocaleToLanguage( aLocale );
+ sal_Int16 nLanguageP = LanguageTag( aLocale ).getLanguageType();
if (!bIsReadonly && nLanguage != nLanguageP)
{
nLanguage = nLanguageP;