summaryrefslogtreecommitdiff
path: root/tikzit/src/osx/SelectBoxLayer.m
diff options
context:
space:
mode:
authorJohan Paulsson <gonz@badcode.net>2014-03-23 02:48:06 +0000
committerJohan Paulsson <gonz@badcode.net>2014-03-23 02:48:06 +0000
commit5532f8878b7219720de6145eabbe57efb894957c (patch)
tree25e3ce1d092bc3e57096f63989e98409870d3e9b /tikzit/src/osx/SelectBoxLayer.m
parent2d6b88d5d016237acbc8cb63f2cf2477ccfe9e69 (diff)
Converting from GC to ARC
This should only be for the osx specific code as all common files are left out. Hopefully this shouldn't introduce any problems on the other systems.
Diffstat (limited to 'tikzit/src/osx/SelectBoxLayer.m')
-rw-r--r--tikzit/src/osx/SelectBoxLayer.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/osx/SelectBoxLayer.m b/tikzit/src/osx/SelectBoxLayer.m
index c198ffa..a7abe33 100644
--- a/tikzit/src/osx/SelectBoxLayer.m
+++ b/tikzit/src/osx/SelectBoxLayer.m
@@ -14,7 +14,7 @@
@synthesize active;
- (id)init {
- [super init];
+ if (!(self = [super init])) return nil;
box = CGRectMake(0.0f, 0.0f, 0.0f, 0.0f);
active = NO;
return self;
@@ -42,7 +42,7 @@
}
+ (SelectBoxLayer*)layer {
- return [[[SelectBoxLayer alloc] init] autorelease];
+ return [[SelectBoxLayer alloc] init];
}
@end