From 545042e33f962e96207bedb9f78c9481c00940f6 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 9 Oct 2017 12:34:51 +0200 Subject: [PATCH] Add __autoreleasing to NSError --- Classes/SBDocument.h | 2 +- Classes/SBFileImport.h | 2 +- Classes/SBQueueItem.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/SBDocument.h b/Classes/SBDocument.h index bc82272..fc11aec 100755 --- a/Classes/SBDocument.h +++ b/Classes/SBDocument.h @@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, strong) MP42File *mp4; -- (instancetype)initWithMP4:(MP42File *)mp4File error:(NSError **)outError; +- (instancetype)initWithMP4:(MP42File *)mp4File error:(NSError * __autoreleasing *)outError; @property (nonatomic, strong, nullable) NSWindowController *sheetController; diff --git a/Classes/SBFileImport.h b/Classes/SBFileImport.h index e540640..364d14f 100755 --- a/Classes/SBFileImport.h +++ b/Classes/SBFileImport.h @@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SBFileImport : NSWindowController - (instancetype)init NS_UNAVAILABLE; -- (nullable instancetype)initWithURLs:(NSArray *)fileURLs delegate:(id )delegate error:(NSError **)error; +- (nullable instancetype)initWithURLs:(NSArray *)fileURLs delegate:(id )delegate error:(NSError * __autoreleasing *)error; - (IBAction)closeWindow:(id)sender; - (IBAction)addTracks:(id)sender; diff --git a/Classes/SBQueueItem.h b/Classes/SBQueueItem.h index 191149c..cbc55eb 100755 --- a/Classes/SBQueueItem.h +++ b/Classes/SBQueueItem.h @@ -46,8 +46,8 @@ typedef NS_ENUM(NSUInteger, SBQueueItemStatus) { - (void)addAction:(id)action; - (void)removeAction:(id)action; -- (BOOL)prepare:(NSError **)outError; -- (BOOL)processWithOptions:(BOOL)optimize error:(NSError **)outError; +- (BOOL)prepare:(NSError * __autoreleasing *)outError; +- (BOOL)processWithOptions:(BOOL)optimize error:(NSError * __autoreleasing *)outError; - (void)cancel; @end