aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2016-04-10 14:13:33 +1000
committerAbhi Beckert <abhi@abhibeckert.com>2016-04-10 14:13:33 +1000
commit099ea061262413118f81cf9e3aff30bd2b568597 (patch)
treef7d0a49c6e00eb48b38603269bb9aaa24181fcdf
parentb7875e8fdbdc5980c12a847997cc9631979dd4d3 (diff)
downloadsequelpro-099ea061262413118f81cf9e3aff30bd2b568597.tar.gz
sequelpro-099ea061262413118f81cf9e3aff30bd2b568597.tar.bz2
sequelpro-099ea061262413118f81cf9e3aff30bd2b568597.zip
fix warnings
-rw-r--r--Source/BGHUDButtonCell.m4
-rw-r--r--Source/SPTreeNode.m5
2 files changed, 8 insertions, 1 deletions
diff --git a/Source/BGHUDButtonCell.m b/Source/BGHUDButtonCell.m
index fac1dc4a..01881805 100644
--- a/Source/BGHUDButtonCell.m
+++ b/Source/BGHUDButtonCell.m
@@ -928,6 +928,10 @@
case NSImageOverlaps:
break;
+
+ case NSNoImage:
+
+ break;
}
// Create Rounded Rect Path
diff --git a/Source/SPTreeNode.m b/Source/SPTreeNode.m
index f6d419d8..90ef0832 100644
--- a/Source/SPTreeNode.m
+++ b/Source/SPTreeNode.m
@@ -295,7 +295,10 @@ static NSString *SPTreeNodeIsGroupKey = @"SPTreeNodeIsGroup";
- (id)initWithCoder:(NSCoder *)coder
{
-#warning This is not a valid initializer.
+ if (!(self = [super init])) {
+ return nil;
+ }
+
[self setIsGroup:[[coder decodeObjectForKey:SPTreeNodeIsGroupKey] boolValue]];
return self;