fixed up return values in block prototypes

This commit is contained in:
Stefan Reitshamer 2017-11-13 06:46:42 -05:00
parent 0f0c956e16
commit 611c007d50
4 changed files with 4 additions and 4 deletions

View file

@ -283,7 +283,7 @@ extern unsigned long long const kDDDefaultLogFilesDiskQuota;
// You can optionally force the current log file to be rolled with this method.
// CompletionBlock will be called on main queue.
- (void)rollLogFileWithCompletionBlock:(void (^)())completionBlock;
- (void)rollLogFileWithCompletionBlock:(void (^)(void))completionBlock;
// Method is deprecated. Use rollLogFileWithCompletionBlock: method instead.

View file

@ -823,7 +823,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
[self rollLogFileWithCompletionBlock:nil];
}
- (void)rollLogFileWithCompletionBlock:(void (^)())completionBlock {
- (void)rollLogFileWithCompletionBlock:(void (^)(void))completionBlock {
// This method is public.
// We need to execute the rolling on our logging thread/queue.

View file

@ -42,5 +42,5 @@
}
- (id)initWithPath:(NSString *)thePath;
- (BOOL)tryLock:(NSError **)error;
- (BOOL)lockAndExecute:(void (^)())block error:(NSError **)error;
- (BOOL)lockAndExecute:(void (^)(void))block error:(NSError **)error;
@end

View file

@ -61,7 +61,7 @@
- (BOOL)tryLock:(NSError **)error {
return [self lockWithBlockUntilAvailable:NO error:error];
}
- (BOOL)lockAndExecute:(void (^)())block error:(NSError **)error {
- (BOOL)lockAndExecute:(void (^)(void))block error:(NSError **)error {
if (![self lockWithBlockUntilAvailable:YES error:error]) {
return NO;
}