summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-04-16 11:20:17 +0000
committerHerbert Dürr <hdu@apache.org>2013-04-16 11:20:17 +0000
commita88630fb326fa4dcbe28edd1c149c8e5e7b7f123 (patch)
tree94b3fac4d034b111cb0427368160dc83b4aed8a0
parentc597180bd15a3c05aac5d30e8e2773d1c6d02f28 (diff)
use NSString objects for NSSpellChecker and not their NSObject bases
Notes
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
index 53f0720cd6c6..cc7494b0265a 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
@@ -114,11 +114,8 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
SvtPathOptions aPathOpt;
rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8;
- std::vector<objc_object *> postspdict;
- std::vector<objc_object *> postupdict;
- //std::vector<dictentry *> postspdict;
- //std::vector<dictentry *> postupdict;
-
+ std::vector<NSString*> postspdict;
+ std::vector<NSString*> postupdict;
if (!numdict) {
@@ -131,9 +128,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 );
}
}