summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideo.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-03-17 13:56:21 +0000
committerritsuka <[email protected]>2015-03-17 13:56:21 +0000
commit48a9e546878ae074202e0301f428193b7915d68f (patch)
treecf3f0f270fc8c7430dec870e954c826926c02a60 /macosx/HBVideo.m
parent220bd888e05696acbe1dd47f96ded78c389fc27f (diff)
MacGui: convert the mac gui to Objective-C ARC.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r--macosx/HBVideo.m16
1 files changed, 5 insertions, 11 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m
index a5bbd15d7..f4cdaf424 100644
--- a/macosx/HBVideo.m
+++ b/macosx/HBVideo.m
@@ -162,15 +162,12 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
- (void)setPreset:(NSString *)preset
{
- [_preset autorelease];
_preset = [preset copy];
[self postChangedNotification];
}
- (void)setTune:(NSString *)tune
{
- [_tune autorelease];
-
if (![tune isEqualToString:@"none"])
{
_tune = [tune copy];
@@ -185,21 +182,18 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
- (void)setProfile:(NSString *)profile
{
- [_profile autorelease];
_profile = [profile copy];
[self postChangedNotification];
}
- (void)setLevel:(NSString *)level
{
- [_level autorelease];
_level = [level copy];
[self postChangedNotification];
}
- (void)setVideoOptionExtra:(NSString *)videoOptionExtra
{
- [_videoOptionExtra autorelease];
if (videoOptionExtra != nil)
{
_videoOptionExtra = [videoOptionExtra copy];
@@ -305,7 +299,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
}
}
- return [[temp copy] autorelease];
+ return [temp copy];
}
- (NSArray *)tunes
@@ -325,7 +319,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
}
}
- return [[temp copy] autorelease];
+ return [temp copy];
}
- (NSArray *)profiles
@@ -338,7 +332,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
[temp addObject:@(profiles[i])];
}
- return [[temp copy] autorelease];
+ return [temp copy];
}
- (NSArray *)levels
@@ -355,7 +349,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
[temp addObject:@"auto"];
}
- return [[temp copy] autorelease];
+ return [temp copy];
}
#pragma mark - NSCopying
@@ -497,7 +491,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
[string appendString:@"fastdecode"];
}
- return [string autorelease];
+ return string;
}
- (void)applyPreset:(NSDictionary *)preset