From d7a5ec62e91ce3dc5b784815254218f16181f676 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 24 Nov 2012 19:51:53 +0100 Subject: get rid of CreateLocale() and related Change-Id: Iba035ff20b149b3d85a8c0ea25430892c3e40e3f --- linguistic/source/spelldta.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linguistic/source/spelldta.cxx') 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(); } -- cgit v1.2.3