From 6672e0d55810a7447fd06ef1113ad88473ba7538 Mon Sep 17 00:00:00 2001 From: Abhi Beckert Date: Sun, 3 Apr 2016 10:06:33 +1000 Subject: fix various compile warnings --- Source/SPPreferencesUpgrade.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/SPPreferencesUpgrade.m') 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]; } -- cgit v1.2.3