summaryrefslogtreecommitdiff
path: root/tikzit/src/common/PropertyHolder.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/common/PropertyHolder.m')
-rw-r--r--tikzit/src/common/PropertyHolder.m14
1 files changed, 9 insertions, 5 deletions
diff --git a/tikzit/src/common/PropertyHolder.m b/tikzit/src/common/PropertyHolder.m
index 82b4889..2b3442f 100644
--- a/tikzit/src/common/PropertyHolder.m
+++ b/tikzit/src/common/PropertyHolder.m
@@ -27,14 +27,18 @@
- (id)init {
- [super init];
- notificationName = @"UnknownPropertyChanged";
+ self = [super init];
+ if (self) {
+ notificationName = @"UnknownPropertyChanged";
+ }
return self;
}
- (id)initWithNotificationName:(NSString*)n {
- [super init];
- notificationName = [n copy];
+ self = [super init];
+ if (self) {
+ notificationName = [n copy];
+ }
return self;
}
@@ -65,4 +69,4 @@
@end
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
+// vi:ft=objc:ts=4:et:sts=4:sw=4