From 18077724c32912345d1a61528859f91be6341024 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 12 Feb 2019 09:29:02 +0100 Subject: MacGui: send integerForKey: instead of [objectForKey:] intValue] --- macosx/HBController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/HBController.m') diff --git a/macosx/HBController.m b/macosx/HBController.m index 15c9a43da..2b64afaaa 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -161,7 +161,7 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext; if (self) { // Init libhb - int loggingLevel = [[[NSUserDefaults standardUserDefaults] objectForKey:@"LoggingLevel"] intValue]; + NSInteger loggingLevel = [[NSUserDefaults standardUserDefaults] integerForKey:@"LoggingLevel"]; _core = [[HBCore alloc] initWithLogLevel:loggingLevel name:@"ScanCore"]; // Inits the controllers @@ -626,8 +626,8 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext; if (canScan) { - int hb_num_previews = [[[NSUserDefaults standardUserDefaults] objectForKey:@"PreviewsNumber"] intValue]; - int min_title_duration_seconds = [[[NSUserDefaults standardUserDefaults] objectForKey:@"MinTitleScanSeconds"] intValue]; + NSUInteger hb_num_previews = [[NSUserDefaults standardUserDefaults] integerForKey:@"PreviewsNumber"]; + NSUInteger min_title_duration_seconds = [[NSUserDefaults standardUserDefaults] integerForKey:@"MinTitleScanSeconds"]; [self.core scanURL:mediaURL titleIndex:index -- cgit v1.2.3