mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
tiny simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35045 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a4d6548146
commit
4c3333d1df
@ -74,11 +74,6 @@ int checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
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 * word_ = toString(speller, word);
|
||||||
NSString * lang_ = toString(speller, lang);
|
NSString * lang_ = toString(speller, lang);
|
||||||
|
|
||||||
@ -86,9 +81,9 @@ int checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang
|
|||||||
checkSpellingOfString:word_
|
checkSpellingOfString:word_
|
||||||
startingAt:0
|
startingAt:0
|
||||||
language:lang_
|
language:lang_
|
||||||
wrap:(BOOL)NO
|
wrap:NO
|
||||||
inSpellDocumentWithTag:speller->doctag
|
inSpellDocumentWithTag:speller->doctag
|
||||||
wordCount:&wordcount];
|
wordCount:NULL];
|
||||||
|
|
||||||
[word_ release];
|
[word_ release];
|
||||||
[lang_ release];
|
[lang_ release];
|
||||||
|
Loading…
Reference in New Issue
Block a user