diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-24 19:51:53 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-24 19:53:03 +0100 |
commit | d7a5ec62e91ce3dc5b784815254218f16181f676 (patch) | |
tree | 67994cf02b7089e6533f1c66d26c73850b4ac477 /linguistic/source/spelldta.cxx | |
parent | 3bd0013044e41e63cdf790b67af1f0a202dcba87 (diff) |
get rid of CreateLocale() and related
Change-Id: Iba035ff20b149b3d85a8c0ea25430892c3e40e3f
Diffstat (limited to 'linguistic/source/spelldta.cxx')
-rw-r--r-- | linguistic/source/spelldta.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx index 9bbfb8b26af5..f135003e6fba 100644 --- a/linguistic/source/spelldta.cxx +++ b/linguistic/source/spelldta.cxx @@ -78,7 +78,7 @@ void SearchSimilarText( const OUString &rText, sal_Int16 nLanguage, { Reference< XDictionary > xDic( pDic[i], UNO_QUERY ); - sal_Int16 nLang = LocaleToLanguage( xDic->getLocale() ); + sal_Int16 nLang = LanguageTag( xDic->getLocale() ).getLanguageType(); if ( xDic.is() && xDic->isActive() && (nLang == nLanguage || nLang == LANGUAGE_NONE) ) @@ -213,7 +213,7 @@ Locale SAL_CALL SpellAlternatives::getLocale() throw(RuntimeException) { MutexGuard aGuard( GetLinguMutex() ); - return CreateLocale( nLanguage ); + return LanguageTag( nLanguage ).getLocale(); } |