* bridge/mac/FrameMac.mm:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Oct 2006 16:16:01 +0000 (16:16 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Oct 2006 16:16:01 +0000 (16:16 +0000)
        (WebCore::FrameMac::advanceToNextMisspelling): Build fix for release Tiger builds.
        (WebCore::FrameMac::markMisspellings): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17478 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bridge/mac/FrameMac.mm

index a0b424bd30c58ce8a6d4c656d036925030112f85..d2ac2cf2ea4c94667e908abaeb34985570c5a9a5 100644 (file)
@@ -1,3 +1,9 @@
+2006-10-31  Darin Adler  <darin@apple.com>
+
+        * bridge/mac/FrameMac.mm:
+        (WebCore::FrameMac::advanceToNextMisspelling): Build fix for release Tiger builds.
+        (WebCore::FrameMac::markMisspellings): Ditto.
+
 2006-10-31  John Sullivan  <sullivan@apple.com>
 
         * bridge/mac/FrameMac.mm:
index fe47859ac60b830f2a19d1a33ed003fc95d90b73..3c3a7091f4ad512f7cf25a6834247d34dd876c7c 100644 (file)
@@ -641,7 +641,9 @@ void FrameMac::advanceToNextMisspelling(bool startBeforeSelection)
                 NSString *chunk = [[NSString alloc] initWithCharactersNoCopy:const_cast<UChar*>(chars) length:len freeWhenDone:NO];
                 NSRange misspellingNSRange = [checker checkSpellingOfString:chunk startingAt:0 language:nil wrap:NO inSpellDocumentWithTag:editor()->client()->spellCheckerDocumentTag() wordCount:NULL];
 
+#if !defined(NDEBUG) || !defined(BUILDING_ON_TIGER)
                 NSDictionary *grammarDetail = nil;
+#endif
                 NSRange badGrammarNSRange = NSMakeRange(NSNotFound, 0);
                 NSRange grammarDetailNSRange = NSMakeRange(NSNotFound, 0);
 #ifndef BUILDING_ON_TIGER
@@ -2541,7 +2543,9 @@ void FrameMac::markMisspellings(const Selection& selection)
             while (startIndex < len) {
                 NSRange misspellingNSRange = [checker checkSpellingOfString:chunk startingAt:startIndex language:nil wrap:NO inSpellDocumentWithTag:editor()->client()->spellCheckerDocumentTag() wordCount:NULL];
 
+#if !defined(NDEBUG) || !defined(BUILDING_ON_TIGER)
                 NSDictionary *grammarDetail = nil;
+#endif
                 NSRange badGrammarNSRange = NSMakeRange(NSNotFound, 0);
                 NSRange grammarDetailNSRange = NSMakeRange(NSNotFound, 0);
 #ifndef BUILDING_ON_TIGER