From 9f2c6ab42ee612f2516f7a67f67d1635ec3a9780 Mon Sep 17 00:00:00 2001 From: Nick Brook Date: Tue, 13 Feb 2018 17:59:13 +0000 Subject: [PATCH] Fix prototype declaration warnings --- CordovaLib/Classes/Public/CDVCommandDelegate.h | 2 +- CordovaLib/Classes/Public/CDVCommandDelegateImpl.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CordovaLib/Classes/Public/CDVCommandDelegate.h b/CordovaLib/Classes/Public/CDVCommandDelegate.h index 3d9d90c92..efc9ad3f3 100644 --- a/CordovaLib/Classes/Public/CDVCommandDelegate.h +++ b/CordovaLib/Classes/Public/CDVCommandDelegate.h @@ -44,7 +44,7 @@ typedef NSURL* (^ UrlTransformerBlock)(NSURL*); // in dead-lock. This method must be called from the UI thread. - (void)evalJs:(NSString*)js scheduledOnRunLoop:(BOOL)scheduledOnRunLoop; // Runs the given block on a background thread using a shared thread-pool. -- (void)runInBackground:(void (^)())block; +- (void)runInBackground:(void (^)(void))block; // Returns the User-Agent of the associated UIWebView. - (NSString*)userAgent; diff --git a/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m b/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m index fd8b3e8dc..1ae4483eb 100644 --- a/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m +++ b/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m @@ -168,7 +168,7 @@ - (id)getCommandInstance:(NSString*)pluginName return [_viewController getCommandInstance:pluginName]; } -- (void)runInBackground:(void (^)())block +- (void)runInBackground:(void (^)(void))block { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block); }