From 761a00170b4a511e4dd615a208da1ee93a6b1a1e Mon Sep 17 00:00:00 2001 From: sqlprodev Date: Tue, 1 Mar 2011 19:38:23 +0000 Subject: fixed compiler warnings --- Source/GeneratePreviewForURL.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/GeneratePreviewForURL.m') diff --git a/Source/GeneratePreviewForURL.m b/Source/GeneratePreviewForURL.m index 349837ff..3bc5de43 100644 --- a/Source/GeneratePreviewForURL.m +++ b/Source/GeneratePreviewForURL.m @@ -372,7 +372,6 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, truncatedString = [[NSString alloc] initWithString:@"\n ✂ ..."]; } - NSRange textRange = NSMakeRange(0, [sqlText length]); NSString *tokenColor; size_t token; NSRange tokenRange; @@ -385,7 +384,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, // now loop through all the tokens NSUInteger poolCount = 0; NSAutoreleasePool *loopPool = [[NSAutoreleasePool alloc] init]; - while (token=yylex()){ + while ((token=yylex())){ skipFontTag = NO; switch (token) { case SPT_SINGLE_QUOTED_TEXT: -- cgit v1.2.3