summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck/spell/sspellimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source/spellcheck/spell/sspellimp.cxx')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 2e4e7e6305b9..1acdf0dbc6a5 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -165,7 +165,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
k = 0;
for (aItB = aLocaleNamesSet.begin(); aItB != aLocaleNamesSet.end(); ++aItB)
{
- Locale aTmp( LanguageTag( *aItB ).getLocale());
+ Locale aTmp( LanguageTag::convertToLocale( *aItB ));
aSuppLocales[k++] = aTmp;
}
@@ -199,7 +199,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
{
aDicts[k] = NULL;
aDEncs[k] = RTL_TEXTENCODING_DONTKNOW;
- aDLocs[k] = LanguageTag( aLocaleNames[i] ).getLocale();
+ aDLocs[k] = LanguageTag::convertToLocale( aLocaleNames[i] );
// also both files have to be in the same directory and the
// file names must only differ in the extension (.aff/.dic).
// Thus we use the first location only and strip the extension part.