Commit a2f9f24c authored by Damiano Galassi's avatar Damiano Galassi

MacGui: fix a warnings and the tests.

parent 16ff432a
......@@ -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]) {
......
......@@ -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];
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment