aboutsummaryrefslogtreecommitdiffstats
path: root/Source/GeneratePreviewForURL.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2011-03-01 19:38:23 +0000
committersqlprodev <sqlprodev@northofthree.com>2011-03-01 19:38:23 +0000
commit761a00170b4a511e4dd615a208da1ee93a6b1a1e (patch)
tree57531ed23925153b42f76e3b510a895108ae22ce /Source/GeneratePreviewForURL.m
parent4ffd7b043ca505e52b7f1c5a463e02534997c197 (diff)
downloadsequelpro-761a00170b4a511e4dd615a208da1ee93a6b1a1e.tar.gz
sequelpro-761a00170b4a511e4dd615a208da1ee93a6b1a1e.tar.bz2
sequelpro-761a00170b4a511e4dd615a208da1ee93a6b1a1e.zip
fixed compiler warnings
Diffstat (limited to 'Source/GeneratePreviewForURL.m')
-rw-r--r--Source/GeneratePreviewForURL.m3
1 files changed, 1 insertions, 2 deletions
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: