diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-14 20:04:34 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-14 20:04:34 +0000 |
commit | d2b4123427c21c522b2e4496a6d54eb74aabe62d (patch) | |
tree | e49cd8e4c6ba62c8544699ab773b598ea5040167 /Source/SPTableTriggers.m | |
parent | f63d1de5460968e5466be02676c8c6f9ed8787b6 (diff) | |
download | sequelpro-d2b4123427c21c522b2e4496a6d54eb74aabe62d.tar.gz sequelpro-d2b4123427c21c522b2e4496a6d54eb74aabe62d.tar.bz2 sequelpro-d2b4123427c21c522b2e4496a6d54eb74aabe62d.zip |
Fix more compiler warnings.
Diffstat (limited to 'Source/SPTableTriggers.m')
-rw-r--r-- | Source/SPTableTriggers.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/SPTableTriggers.m b/Source/SPTableTriggers.m index f5c15db0..bc5fc4f6 100644 --- a/Source/SPTableTriggers.m +++ b/Source/SPTableTriggers.m @@ -231,12 +231,12 @@ static const NSString *SPTriggerSQLMode = @"TriggerSQLMode"; if (isEdit) { [triggerStatementTextView setString:editTriggerStatement]; - NSString *query = [NSString stringWithFormat:createTriggerStatementTemplate, - [editTriggerName backtickQuotedString], - editTriggerActionTime, - editTriggerEvent, - [editTriggerTableName backtickQuotedString], - editTriggerStatement]; + query = [NSString stringWithFormat:createTriggerStatementTemplate, + [editTriggerName backtickQuotedString], + editTriggerActionTime, + editTriggerEvent, + [editTriggerTableName backtickQuotedString], + editTriggerStatement]; // If this attempt to re-create the trigger failed, then we're screwed as we've just lost the user's // data, but they had a backup and everything's cool, right? Should we be displaying an error here @@ -339,12 +339,12 @@ static const NSString *SPTriggerSQLMode = @"TriggerSQLMode"; /** * Double-click action on table cells - for the time being, return NO to disable editing. */ -- (BOOL)tableView:(NSTableView *)tableView shouldEditTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)rowIndex +- (BOOL)tableView:(NSTableView *)tableView shouldEditTableColumn:(NSTableColumn *)tableColumn row:(NSUInteger)rowIndex { if ([tableDocumentInstance isWorking]) return NO; // Start Edit panel - if (([triggerData count] > rowIndex) && ([triggerData objectAtIndex:rowIndex] != NSNotFound)) { + if (([triggerData count] > rowIndex) && [triggerData objectAtIndex:rowIndex]) { [self _editTriggerAtIndex:rowIndex]; } |