This is an automated email from the ASF dual-hosted git repository. shazron pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push: new f45a8a1 Fix prototype declaration warnings (#356) f45a8a1 is described below commit f45a8a165644fc64135a9a355546c31720cac7d4 Author: Nick Brook <nrbr...@gmail.com> AuthorDate: Mon Feb 26 05:38:41 2018 +0000 Fix prototype declaration warnings (#356) --- 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 3d9d90c..efc9ad3 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 fd8b3e8..1ae4483 100644 --- a/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m +++ b/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m @@ -168,7 +168,7 @@ 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); } -- To stop receiving notification emails like this one, please contact shaz...@apache.org. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org