You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by su...@apache.org on 2017/11/13 22:08:19 UTC

[cordova-ios] branch master updated: Fix compile error when compile source as objective-c++

This is an automated email from the ASF dual-hosted git repository.

surajpindoria 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 9f54230  Fix compile error when compile source as objective-c++
9f54230 is described below

commit 9f542304ea440aa70954feb2d7dee13996d5901a
Author: 葛威 <ge...@myshow360.com>
AuthorDate: Mon Oct 30 16:03:24 2017 +0800

    Fix compile error when compile source as objective-c++
---
 CordovaLib/Classes/Public/CDVUserAgentUtil.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CordovaLib/Classes/Public/CDVUserAgentUtil.m b/CordovaLib/Classes/Public/CDVUserAgentUtil.m
index b17107e..6eb5912 100644
--- a/CordovaLib/Classes/Public/CDVUserAgentUtil.m
+++ b/CordovaLib/Classes/Public/CDVUserAgentUtil.m
@@ -97,7 +97,7 @@ static NSMutableArray* gPendingSetUserAgentBlocks = nil;
 
     VerboseLog(@"Released lock %d", *lockToken);
     if ([gPendingSetUserAgentBlocks count] > 0) {
-        void (^block)() = [gPendingSetUserAgentBlocks objectAtIndex:0];
+        void (^block)(NSInteger lockToken) = [gPendingSetUserAgentBlocks objectAtIndex:0];
         [gPendingSetUserAgentBlocks removeObjectAtIndex:0];
         gCurrentLockToken = ++gNextLockToken;
         NSLog(@"Gave lock %ld", (long)gCurrentLockToken);

-- 
To stop receiving notification emails like this one, please contact
['"commits@cordova.apache.org" <co...@cordova.apache.org>'].

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org