summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-02-12 09:29:02 +0100
committerDamiano Galassi <[email protected]>2019-02-12 09:29:02 +0100
commit18077724c32912345d1a61528859f91be6341024 (patch)
tree938eeb09ce96b698e8dd9728881a6e889e74ef69 /macosx/HBController.m
parentb183dc8e884920228ca1e626a91cce0ea48a6297 (diff)
MacGui: send integerForKey: instead of [objectForKey:] intValue]
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m6
1 files changed, 3 insertions, 3 deletions
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