aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferencesUpgrade.m
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2016-04-03 10:06:33 +1000
committerAbhi Beckert <abhi@abhibeckert.com>2016-04-03 10:06:41 +1000
commit6672e0d55810a7447fd06ef1113ad88473ba7538 (patch)
tree841c95ecacd2f1d7b34211e95490b130985e2535 /Source/SPPreferencesUpgrade.m
parent128add6d3e731a83d813ad69ee1e773776bb8e69 (diff)
downloadsequelpro-6672e0d55810a7447fd06ef1113ad88473ba7538.tar.gz
sequelpro-6672e0d55810a7447fd06ef1113ad88473ba7538.tar.bz2
sequelpro-6672e0d55810a7447fd06ef1113ad88473ba7538.zip
fix various compile warnings
Diffstat (limited to 'Source/SPPreferencesUpgrade.m')
-rw-r--r--Source/SPPreferencesUpgrade.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m
index 6d0a3393..11cd146c 100644
--- a/Source/SPPreferencesUpgrade.m
+++ b/Source/SPPreferencesUpgrade.m
@@ -32,6 +32,7 @@
#import "SPKeychain.h"
#import "SPFavoritesController.h"
#import "SPTreeNode.h"
+#import "SPFavoriteNode.h"
static NSString *SPOldFavoritesKey = @"favorites";
static NSString *SPOldDefaultEncodingKey = @"DefaultEncoding";
@@ -354,7 +355,7 @@ void SPApplyRevisionChanges(void)
for(SPTreeNode *node in favs) {
if([node isGroup])
continue;
- NSMutableDictionary *data = [[node representedObject] nodeFavorite];
+ NSMutableDictionary *data = [(SPFavoriteNode *)[node representedObject] nodeFavorite];
if(![data objectForKey:SPFavoriteColorIndexKey])
[data setObject:@(-1) forKey:SPFavoriteColorIndexKey];
}