From: Jean-Marc Lasgouttes Date: Tue, 3 Aug 2010 22:31:16 +0000 (+0000) Subject: tiny simplification X-Git-Tag: 2.0.0~2872 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4c3333d1dfa0382f6bd90f4aa0d5aa9cd0e4e7d7;p=features.git tiny simplification git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35045 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/AppleSpeller.m b/src/support/AppleSpeller.m index 4ca1eb0d51..560d014fb8 100644 --- a/src/support/AppleSpeller.m +++ b/src/support/AppleSpeller.m @@ -74,11 +74,6 @@ int checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang return 0; NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; -#if defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 1050) - NSInteger wordcount; -#else - int wordcount; -#endif NSString * word_ = toString(speller, word); NSString * lang_ = toString(speller, lang); @@ -86,9 +81,9 @@ int checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang checkSpellingOfString:word_ startingAt:0 language:lang_ - wrap:(BOOL)NO + wrap:NO inSpellDocumentWithTag:speller->doctag - wordCount:&wordcount]; + wordCount:NULL]; [word_ release]; [lang_ release];