diff options
author | Damiano Galassi <[email protected]> | 2019-08-22 07:55:24 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-08-22 07:55:24 +0200 |
commit | a2f9f24c3784422677fae15e693b255b65e3fd68 (patch) | |
tree | 4b06194f4ead68789a5487f34cdc57f1e524217e | |
parent | 16ff432a7118f3b2d4a13b24e7d61ad6cf068abd (diff) |
MacGui: fix a warnings and the tests.
-rw-r--r-- | macosx/HBCore.m | 2 | ||||
-rw-r--r-- | macosx/HBQueueTableViewController.m | 4 | ||||
-rw-r--r-- | macosx/HandBrakeKitTests/HBJobUndoTests.m | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m index d3dca8d7b..51f91c5d9 100644 --- a/macosx/HBCore.m +++ b/macosx/HBCore.m @@ -187,7 +187,7 @@ typedef void (^HBCoreCleanupHandler)(void); NSAssert(url, @"[HBCore canScan:] called with nil url."); #ifdef __SANDBOX_ENABLED__ - HBSecurityAccessToken *token = [HBSecurityAccessToken tokenWithObject:url]; + __unused HBSecurityAccessToken *token = [HBSecurityAccessToken tokenWithObject:url]; #endif if (![[NSFileManager defaultManager] fileExistsAtPath:url.path]) { diff --git a/macosx/HBQueueTableViewController.m b/macosx/HBQueueTableViewController.m index 034e03487..530c49f9a 100644 --- a/macosx/HBQueueTableViewController.m +++ b/macosx/HBQueueTableViewController.m @@ -107,7 +107,7 @@ */ - (IBAction)removeSelectedQueueItem:(id)sender { - NSMutableIndexSet *targetedRows = [[self.tableView targetedRowIndexes] mutableCopy]; + NSIndexSet *targetedRows = self.tableView.targetedRowIndexes; [self.delegate tableViewRemoveItemsAtIndexes:targetedRows]; } @@ -116,7 +116,7 @@ */ - (IBAction)revealSelectedQueueItems:(id)sender { - NSIndexSet *targetedRows = [self.tableView targetedRowIndexes]; + NSIndexSet *targetedRows = self.tableView.targetedRowIndexes; NSMutableArray<NSURL *> *urls = [[NSMutableArray alloc] init]; NSUInteger currentIndex = [targetedRows firstIndex]; diff --git a/macosx/HandBrakeKitTests/HBJobUndoTests.m b/macosx/HandBrakeKitTests/HBJobUndoTests.m index 7ec26a130..449247e47 100644 --- a/macosx/HandBrakeKitTests/HBJobUndoTests.m +++ b/macosx/HandBrakeKitTests/HBJobUndoTests.m @@ -47,7 +47,7 @@ dispatch_semaphore_t sem = dispatch_semaphore_create(0); self.core = [[HBCore alloc] initWithLogLevel:1 queue:self.queue]; - [self.core scanURL:sampleURL titleIndex:0 previews:1 minDuration:0 progressHandler:^(HBState state, HBProgress progress, NSString * _Nonnull info) { + [self.core scanURL:sampleURL titleIndex:0 previews:1 minDuration:0 keepPreviews:NO progressHandler:^(HBState state, HBProgress progress, NSString * _Nonnull info) { } completionHandler:^(HBCoreResult result) { dispatch_semaphore_signal(sem); |