diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2016-04-10 14:13:33 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@abhibeckert.com> | 2016-04-10 14:13:33 +1000 |
commit | 099ea061262413118f81cf9e3aff30bd2b568597 (patch) | |
tree | f7d0a49c6e00eb48b38603269bb9aaa24181fcdf /Source/SPTreeNode.m | |
parent | b7875e8fdbdc5980c12a847997cc9631979dd4d3 (diff) | |
download | sequelpro-099ea061262413118f81cf9e3aff30bd2b568597.tar.gz sequelpro-099ea061262413118f81cf9e3aff30bd2b568597.tar.bz2 sequelpro-099ea061262413118f81cf9e3aff30bd2b568597.zip |
fix warnings
Diffstat (limited to 'Source/SPTreeNode.m')
-rw-r--r-- | Source/SPTreeNode.m | 5 |
1 files changed, 4 insertions, 1 deletions
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; |