summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2015-04-15 09:39:00 -0500
committerBrad Leege <bleege@gmail.com>2015-04-15 09:39:00 -0500
commit074687e732ab847f54321f885ef1a2c1d2e7c0b8 (patch)
treec1833b5aa5b8d2c0e4be7e9a5fa3023924129b76
parent88b8d452b9ed2cc6c156b6b446904b86afd3c7a2 (diff)
downloadqtlocation-mapboxgl-074687e732ab847f54321f885ef1a2c1d2e7c0b8.tar.gz
#1271 - Changing "new" to "alloc init"
-rw-r--r--platform/ios/MGLMapboxEvents.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m
index 2150c1e166..605c6a3fa0 100644
--- a/platform/ios/MGLMapboxEvents.m
+++ b/platform/ios/MGLMapboxEvents.m
@@ -571,7 +571,7 @@ NSString *const MGLEventGestureRotateStart = @"Rotation";
// Can be called from any thread.
//
- (NSString *) getCurrentCellularNetworkConnectionType {
- CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new];
+ CTTelephonyNetworkInfo *telephonyInfo = [[CTTelephonyNetworkInfo alloc] init];
NSString *radioTech = telephonyInfo.currentRadioAccessTechnology;
if (radioTech == nil) {