aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPEditorPreferencePane.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2011-03-01 19:01:41 +0000
committersqlprodev <sqlprodev@northofthree.com>2011-03-01 19:01:41 +0000
commit4ffd7b043ca505e52b7f1c5a463e02534997c197 (patch)
treea51f41c832ee7f0b2b425df4df655eb142356407 /Source/SPEditorPreferencePane.m
parent6eaeee8d11028cc626bcef2dd8dd2ceaabafe2a2 (diff)
downloadsequelpro-4ffd7b043ca505e52b7f1c5a463e02534997c197.tar.gz
sequelpro-4ffd7b043ca505e52b7f1c5a463e02534997c197.tar.bz2
sequelpro-4ffd7b043ca505e52b7f1c5a463e02534997c197.zip
fixed compiler warnings
Diffstat (limited to 'Source/SPEditorPreferencePane.m')
-rw-r--r--Source/SPEditorPreferencePane.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/SPEditorPreferencePane.m b/Source/SPEditorPreferencePane.m
index 50388e8a..561817db 100644
--- a/Source/SPEditorPreferencePane.m
+++ b/Source/SPEditorPreferencePane.m
@@ -546,7 +546,7 @@ static const NSString *SPDefaultExportColourSchemeName = @"MyTheme";
return [editThemeListItems count];
}
- return nil;
+ return 0;
}
- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)rowIndex
@@ -806,11 +806,7 @@ static const NSString *SPDefaultExportColourSchemeName = @"MyTheme";
NSMutableDictionary *scheme = [NSMutableDictionary dictionary];
NSMutableDictionary *mainsettings = [NSMutableDictionary dictionary];
NSMutableArray *settings = [NSMutableArray array];
-
- CGFloat red, green, blue, alpha;
- NSInteger redInt, greenInt, blueInt, alphaInt;
- NSString *redHexValue, *greenHexValue, *blueHexValue, *alphaHexValue;
-
+
[prefs synchronize];
NSColor *aColor = [NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPCustomQueryEditorBackgroundColor]];