summaryrefslogtreecommitdiff
path: root/lingucomponent/source
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index c2ca43895f91..64cc1c1421a6 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -120,9 +120,10 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
//Test for existence of the dictionaries
for (unsigned int i = 0; i < [aLocales count]; i++)
{
- if( [macSpell setLanguage:[aLocales objectAtIndex:i] ] )
+ NSString* pLangStr = (NSString*)[aLocales objectAtIndex:i];
+ if( [macSpell setLanguage:pLangStr ] )
{
- postspdict.push_back( [ aLocales objectAtIndex:i ] );
+ postspdict.push_back( pLangStr );
}
}