diff options
author | ritsuka <[email protected]> | 2015-04-09 19:43:33 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-04-09 19:43:33 +0000 |
commit | f360714523e5f1f78ced2ae8691f3087b80eef65 (patch) | |
tree | 026c25eeba6d089a53ee1f73aed7329a318088cd /macosx/HBPreviewGenerator.m | |
parent | f0cc63a21d2e4510f911c4cde75d051aec3e5635 (diff) |
MacGui: run the Xcode "convert to modern objective-c" on the entire project.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7075 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewGenerator.m')
-rw-r--r-- | macosx/HBPreviewGenerator.m | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/macosx/HBPreviewGenerator.m b/macosx/HBPreviewGenerator.m index d999791f6..75d2b0ab8 100644 --- a/macosx/HBPreviewGenerator.m +++ b/macosx/HBPreviewGenerator.m @@ -15,7 +15,6 @@ @interface HBPreviewGenerator () @property (nonatomic, readonly) NSMutableDictionary *picturePreviews; -@property (nonatomic, readonly) NSUInteger imagesCount; @property (unsafe_unretained, nonatomic, readonly) HBCore *scanCore; @property (unsafe_unretained, nonatomic, readonly) HBJob *job; @@ -62,7 +61,7 @@ // The preview for the specified index may not currently exist, so this method // generates it if necessary. - CGImageRef theImage = (__bridge CGImageRef)[self.picturePreviews objectForKey:@(index)]; + CGImageRef theImage = (__bridge CGImageRef)(self.picturePreviews)[@(index)]; if (!theImage) { @@ -75,7 +74,7 @@ deinterlace:deinterlace]; if (cache && theImage) { - [self.picturePreviews setObject:(__bridge id)theImage forKey:@(index)]; + (self.picturePreviews)[@(index)] = (__bridge id)theImage; } } else @@ -178,9 +177,8 @@ job.video.twoPass = NO; // Init the libhb core - int loggingLevel = [[[NSUserDefaults standardUserDefaults] objectForKey:@"LoggingLevel"] intValue]; - self.core = [[HBCore alloc] initWithLoggingLevel:loggingLevel]; - self.core.name = @"PreviewCore"; + int level = [[[NSUserDefaults standardUserDefaults] objectForKey:@"LoggingLevel"] intValue]; + self.core = [[HBCore alloc] initWithLogLevel:level name:@"PreviewCore"]; // start the actual encode [self.core encodeJob:job |