* [iOS] fix compier warnings
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/12f82b2e Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/12f82b2e Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/12f82b2e Branch: refs/heads/master Commit: 12f82b2efc4bb4b85c464c8c436c78060d929b21 Parents: d9edda1 Author: acton393 <[email protected]> Authored: Tue Dec 19 14:30:03 2017 +0800 Committer: acton393 <[email protected]> Committed: Wed Dec 20 17:53:12 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/12f82b2e/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m index 4b46bea..5828d3c 100644 --- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m +++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m @@ -442,7 +442,7 @@ _Pragma("clang diagnostic pop") \ NSMutableArray *sendQueue = [NSMutableArray array]; [self.sendQueue setValue:sendQueue forKey:instanceIdString]; NSArray *args = nil; - NSString * bundleType = [self _pareJSBundleType:instanceIdString jsBundleString:jsBundleString] // bundleType can be Vue, Rax and the new framework. + NSString * bundleType = [self _pareJSBundleType:instanceIdString jsBundleString:jsBundleString]; // bundleType can be Vue, Rax and the new framework. WX_MONITOR_INSTANCE_PERF_START(WXFirstScreenJSFExecuteTime, [WXSDKManager instanceForID:instanceIdString]); WX_MONITOR_INSTANCE_PERF_START(WXPTJSCreateInstance, [WXSDKManager instanceForID:instanceIdString]); id configCenter = [WXSDKEngine handlerForProtocol:@protocol(WXConfigCenterProtocol)]; @@ -518,7 +518,7 @@ _Pragma("clang diagnostic pop") \ return bundleType; } regEx = [NSRegularExpression regularExpressionWithPattern:@"(use)(\\s+)(weex:rax)" options:NSRegularExpressionCaseInsensitive error:NULL]; - NSTextCheckingResult *match = [regEx firstMatchInString:jsBundleString options:0 range:NSMakeRange(0, jsBundleString.length)]; + match = [regEx firstMatchInString:jsBundleString options:0 range:NSMakeRange(0, jsBundleString.length)]; if (match) { bundleType = [jsBundleString substringWithRange:match.range]; }
