aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTreeNode.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTreeNode.m')
-rw-r--r--Source/SPTreeNode.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTreeNode.m b/Source/SPTreeNode.m
index 3d5f2ebc..e197d180 100644
--- a/Source/SPTreeNode.m
+++ b/Source/SPTreeNode.m
@@ -28,7 +28,7 @@
#import "SPGroupNode.h"
// Constants
-static const NSString *SPTreeNodeIsGroupKey = @"SPTreeNodeIsGroup";
+static NSString *SPTreeNodeIsGroupKey = @"SPTreeNodeIsGroup";
@implementation SPTreeNode
@@ -65,7 +65,7 @@ static const NSString *SPTreeNodeIsGroupKey = @"SPTreeNodeIsGroup";
for (SPTreeNode *node in [self childNodes])
{
if (node == object) {
- [[self childNodes] removeObjectIdenticalTo:object];
+ [[self mutableChildNodes] removeObjectIdenticalTo:object];
return;
}