diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-01 21:09:08 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-01 21:09:08 +0000 |
commit | 64919b03fa59c8d93c81a8e3893934c04a3cac91 (patch) | |
tree | a73f3db993975d4fb6963730450bae0655b12a09 /Source/SPCustomQuery.m | |
parent | cd09dcd69813400b098b9f019a558efb11e6c8b2 (diff) | |
download | sequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.tar.gz sequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.tar.bz2 sequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.zip |
Fix compiler warnings.
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 26625e8b..c3e83ff4 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -167,7 +167,7 @@ // If carriage returns were found, normalise the queries if ([queryParser containsCarriageReturns]) { NSMutableArray *normalisedQueries = [NSMutableArray arrayWithCapacity:[queries count]]; - for (NSString *query in queries) { + for (query in queries) { [normalisedQueries addObject:[SPSQLParser normaliseQueryForExecution:query]]; } queries = normalisedQueries; @@ -893,7 +893,7 @@ dataLoadingPool = [[NSAutoreleasePool alloc] init]; // Loop through the result rows as they become available - while (tempRow = [theResult fetchNextRowAsArray]) { + while ((tempRow = [theResult fetchNextRowAsArray])) { pthread_mutex_lock(&resultDataLock); SPDataStorageAddRow(resultData, tempRow); @@ -3158,9 +3158,11 @@ // Remove all needless default menu items NSEnumerator *itemEnumerator = [defaultMenuItems objectEnumerator]; NSMenuItem *menuItem = nil; - while (menuItem = [itemEnumerator nextObject]) + + while ((menuItem = [itemEnumerator nextObject])) { NSInteger tag = [menuItem tag]; + switch (tag) { case 2000: // WebMenuItemTagOpenLink |