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/dlistimp.cxx | |
parent | 3bd0013044e41e63cdf790b67af1f0a202dcba87 (diff) |
get rid of CreateLocale() and related
Change-Id: Iba035ff20b149b3d85a8c0ea25430892c3e40e3f
Diffstat (limited to 'linguistic/source/dlistimp.cxx')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index fd9f377057de..ed7a8a712576 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -566,7 +566,7 @@ uno::Reference< XDictionary > SAL_CALL { osl::MutexGuard aGuard( GetLinguMutex() ); - sal_Int16 nLanguage = LocaleToLanguage( rLocale ); + sal_Int16 nLanguage = LanguageTag( rLocale ).getLanguageType(); bool bIsWriteablePath = rURL.match( GetDictionaryWriteablePath(), 0 ); return new DictionaryNeo( rName, nLanguage, eDicType, rURL, bIsWriteablePath ); } @@ -578,7 +578,7 @@ uno::Reference< XDictionaryEntry > SAL_CALL throw(RuntimeException) { osl::MutexGuard aGuard( GetLinguMutex() ); - return SearchDicList( this, rWord, LocaleToLanguage( rLocale ), + return SearchDicList( this, rWord, LanguageTag( rLocale ).getLanguageType(), bSearchPosDics, bSearchSpellEntry ); } @@ -669,7 +669,7 @@ void DicList::_CreateDicList() // and add it to list rtl::OUString aDicName( A2OU( "IgnoreAllList" ) ); uno::Reference< XDictionary > xIgnAll( - createDictionary( aDicName, CreateLocale( LANGUAGE_NONE ), + createDictionary( aDicName, LanguageTag( LANGUAGE_NONE ).getLocale(), DictionaryType_POSITIVE, rtl::OUString() ) ); if (xIgnAll.is()) { |