diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-24 21:17:16 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-24 21:17:37 +0100 |
commit | f1beaad9e60d35b39b1b9a3a517385ecbc9c5d41 (patch) | |
tree | fdede2947e9aac1b7bbf041ef8005863e7263bc4 /linguistic | |
parent | cf0a7fe1159e9be1afd119616aef6a9e322edc50 (diff) |
some more LocaleToLanguage() replacement
Change-Id: Idde3595e92744a8bfc81a0c4714fde67e2220ea5
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/workben/sspellimp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx index 914f2a125a69..68071d2d9c36 100644 --- a/linguistic/workben/sspellimp.cxx +++ b/linguistic/workben/sspellimp.cxx @@ -185,7 +185,7 @@ sal_Bool SAL_CALL sal_Int16 nFailure = GetSpellFailure( rWord, rLocale ); if (nFailure != -1) { - sal_Int16 nLang = LocaleToLanguage( rLocale ); + sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType(); // postprocess result for errors that should be ignored if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang )) || (!rHelper.IsSpellWithDigits() && HasDigits( rWord )) @@ -214,7 +214,7 @@ Reference< XSpellAlternatives > String aTmp( rWord ); if (aTmp.Len()) { - sal_Int16 nLang = LocaleToLanguage( rLocale ); + sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType(); if (STRING_NOTFOUND != aTmp.SearchAscii( "liss" )) { |