From 3a5dbdb5cc2e0418545d3e57c4990060e306c20e Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 19 Feb 2014 12:41:35 -0800 Subject: [PATCH] iOS stylistic changes --- ios/MBXViewController.mm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm index 28bee82ce..f101e7c84 100644 --- a/ios/MBXViewController.mm +++ b/ios/MBXViewController.mm @@ -373,9 +373,9 @@ class MBXMapView return ([validSimultaneousGestures containsObject:[gestureRecognizer class]] && [validSimultaneousGestures containsObject:[otherGestureRecognizer class]]); } -CADisplayLink *displayLink; MBXMapView *mapView; -NSOperationQueue *queue = NULL; +CADisplayLink *displayLink; +NSOperationQueue *queue; namespace llmr { @@ -389,11 +389,10 @@ namespace llmr { [[NSNotificationCenter defaultCenter] postNotificationName:MBXUpdateActivityNotification object:nil userInfo:[NSDictionary dictionaryWithObject:@1 forKey:@"count"]]; - if (!queue) { - queue = [[NSOperationQueue alloc] init]; - } + if (!queue) + queue = [NSOperationQueue new]; - NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithUTF8String:url.c_str()]]]; + NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@(url.c_str())]]; [NSURLConnection sendAsynchronousRequest:urlRequest queue:queue