aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-01 21:09:08 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-01 21:09:08 +0000
commit64919b03fa59c8d93c81a8e3893934c04a3cac91 (patch)
treea73f3db993975d4fb6963730450bae0655b12a09 /Source/SPCustomQuery.m
parentcd09dcd69813400b098b9f019a558efb11e6c8b2 (diff)
downloadsequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.tar.gz
sequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.tar.bz2
sequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.zip
Fix compiler warnings.
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m8
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