summaryrefslogtreecommitdiff
path: root/tikzit/src/common/GraphElementProperty.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/common/GraphElementProperty.m')
-rw-r--r--tikzit/src/common/GraphElementProperty.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/tikzit/src/common/GraphElementProperty.m b/tikzit/src/common/GraphElementProperty.m
index 79abe79..9751230 100644
--- a/tikzit/src/common/GraphElementProperty.m
+++ b/tikzit/src/common/GraphElementProperty.m
@@ -102,13 +102,13 @@
return [self matches:object];
}
-- (id)copy {
+- (id)copyWithZone:(NSZone*)zone {
if (isAtom) {
- return [[GraphElementProperty alloc] initWithAtomName:[self key]];
+ return [[GraphElementProperty allocWithZone:zone] initWithAtomName:[self key]];
} else if (isKeyMatch) {
- return [[GraphElementProperty alloc] initWithKeyMatching:[self key]];
+ return [[GraphElementProperty allocWithZone:zone] initWithKeyMatching:[self key]];
} else {
- return [[GraphElementProperty alloc] initWithPropertyValue:[self value] forKey:[self key]];
+ return [[GraphElementProperty allocWithZone:zone] initWithPropertyValue:[self value] forKey:[self key]];
}
}