summaryrefslogtreecommitdiff
path: root/tikzit/src/common/Node.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/common/Node.m')
-rw-r--r--tikzit/src/common/Node.m15
1 files changed, 8 insertions, 7 deletions
diff --git a/tikzit/src/common/Node.m b/tikzit/src/common/Node.m
index 7818a28..e564e5d 100644
--- a/tikzit/src/common/Node.m
+++ b/tikzit/src/common/Node.m
@@ -29,17 +29,18 @@
@implementation Node
- (id)initWithPoint:(NSPoint)p {
- [super init];
- data = [[GraphElementData alloc] init];
- style = nil;
- label = @"";
- point = p;
+ self = [super init];
+ if (self) {
+ data = [[GraphElementData alloc] init];
+ style = nil;
+ label = @"";
+ point = p;
+ }
return self;
}
- (id)init {
- [self initWithPoint:NSMakePoint(0.0f, 0.0f)];
- return self;
+ return [self initWithPoint:NSMakePoint(0.0f, 0.0f)];
}
- (id)copyWithZone:(NSZone*)z {