Author: hdu
Date: Tue Apr 16 12:20:17 2013
New Revision: 1468389
URL: http://svn.apache.org/r1468389
Log:
use NSString objects for NSSpellChecker and not their NSObject bases
Modified:
openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
Modified: openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx?rev=1468389&r1=1468388&r2=1468389&view=diff
==============================================================================
--- openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx (original)
+++ openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx Tue
Apr 16 12:20:17 2013
@@ -114,11 +114,8 @@ Sequence< Locale > SAL_CALL MacSpellChec
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 MacSpellChec
//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 );
}
}
|