aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-13 17:54:48 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-13 17:54:48 +0000
commitc2cf0e39c3c59c3548bf39f0835ac552cdcd23f4 (patch)
treee91359e911afb230e7fe09e5cd7d51c9c9eaf8c5 /Source/SPConnectionController.m
parent25065735e36fcec54c5eb034b701999722fb99a1 (diff)
downloadsequelpro-c2cf0e39c3c59c3548bf39f0835ac552cdcd23f4.tar.gz
sequelpro-c2cf0e39c3c59c3548bf39f0835ac552cdcd23f4.tar.bz2
sequelpro-c2cf0e39c3c59c3548bf39f0835ac552cdcd23f4.zip
Warnings.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 5734f3de..da828cda 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -40,10 +40,10 @@
#import "SPTreeNode.h"
// Constants
-static const NSString *SPRemoveNode = @"RemoveNode";
-static const NSString *SPImportFavorites = @"ImportFavorites";
-static const NSString *SPExportFavorites = @"ExportFavorites";
-static const NSString *SPExportFavoritesFilename = @"SequelProFavorites.plist";
+static NSString *SPRemoveNode = @"RemoveNode";
+static NSString *SPImportFavorites = @"ImportFavorites";
+static NSString *SPExportFavorites = @"ExportFavorites";
+static NSString *SPExportFavoritesFilename = @"SequelProFavorites.plist";
@interface SPConnectionController (PrivateAPI)
@@ -637,7 +637,7 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v
/**
* Returns the selected favorite data dictionary or nil if nothing is selected.
*/
-- (NSMutableDictionary *)selectedFavorite
+- (NSDictionary *)selectedFavorite
{
SPTreeNode *node = [self selectedFavoriteNode];
@@ -1202,10 +1202,10 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v
// If this node only has one child and it's not another group node, don't bother proceeding
if (([nodes count] == 1) && (![[nodes objectAtIndex:0] isGroup])) return;
- for (SPTreeNode *node in nodes)
+ for (SPTreeNode *treeNode in nodes)
{
- if ([node isGroup]) {
- [self _sortTreeNode:node usingKey:key];
+ if ([treeNode isGroup]) {
+ [self _sortTreeNode:treeNode usingKey:key];
}
}