From f1beaad9e60d35b39b1b9a3a517385ecbc9c5d41 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 24 Nov 2012 21:17:16 +0100 Subject: some more LocaleToLanguage() replacement Change-Id: Idde3595e92744a8bfc81a0c4714fde67e2220ea5 --- lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index 7be1983e1d16..d021fc02693c 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -296,7 +296,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 )) @@ -320,7 +320,7 @@ Reference< XSpellAlternatives > Reference< XSpellAlternatives > xRes; // note: mutex is held by higher up by spell which covers both - sal_Int16 nLang = LocaleToLanguage( rLocale ); + sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType(); int count; Sequence< OUString > aStr( 0 ); -- cgit v1.2.3