diff options
author | Brad Leege <bleege@gmail.com> | 2015-04-15 09:39:00 -0500 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-04-15 09:39:00 -0500 |
commit | 074687e732ab847f54321f885ef1a2c1d2e7c0b8 (patch) | |
tree | c1833b5aa5b8d2c0e4be7e9a5fa3023924129b76 | |
parent | 88b8d452b9ed2cc6c156b6b446904b86afd3c7a2 (diff) | |
download | qtlocation-mapboxgl-074687e732ab847f54321f885ef1a2c1d2e7c0b8.tar.gz |
#1271 - Changing "new" to "alloc init"
-rw-r--r-- | platform/ios/MGLMapboxEvents.m | 2 |
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) { |