From cfbb8e9f7ddd81f9c0b29a082169a589c6002501 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 19 Feb 2014 12:44:47 -0800 Subject: minor objc style stuff --- macosx/main.mm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'macosx') diff --git a/macosx/main.mm b/macosx/main.mm index c9d3045c3a..426e509116 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -217,7 +217,7 @@ public: }; MapView *mapView; -NSOperationQueue *queue = NULL; +NSOperationQueue *queue; namespace llmr { namespace platform { @@ -228,13 +228,12 @@ void restart(void *) { void request_http(std::string url, std::function func, std::function cb) { if (!queue) { - queue = [[NSOperationQueue alloc] init]; + queue = [NSOperationQueue new]; } NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL - URLWithString:[NSString - stringWithUTF8String:url.c_str()]]]; + URLWithString:@(url.c_str())]]; [NSURLConnection sendAsynchronousRequest:urlRequest -- cgit v1.2.1