From 591c63286b6471a6c769eb17d8e1b16c698a4e11 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Fri, 24 Apr 2015 15:41:21 -0500 Subject: [PATCH] #1225 - Converting id to instancetype --- include/mbgl/ios/MapboxGL.h | 2 +- platform/ios/MapboxGL.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbgl/ios/MapboxGL.h b/include/mbgl/ios/MapboxGL.h index 4e5ff09b2..8470591d5 100644 --- a/include/mbgl/ios/MapboxGL.h +++ b/include/mbgl/ios/MapboxGL.h @@ -5,7 +5,7 @@ @interface MapboxGL : NSObject -+ (id) sharedInstanceWithAccessToken:(NSString *)token; ++ (instancetype) sharedInstanceWithAccessToken:(NSString *)token; + (NSString *) getAccessToken; @end \ No newline at end of file diff --git a/platform/ios/MapboxGL.m b/platform/ios/MapboxGL.m index 97ac8f1d5..0c8812821 100644 --- a/platform/ios/MapboxGL.m +++ b/platform/ios/MapboxGL.m @@ -17,7 +17,7 @@ static MapboxGL *_sharedManager; // Can be called from any thread. Called implicitly from any // public class convenience methods. // -+ (id) sharedInstanceWithAccessToken:(NSString *)token { ++ (instancetype) sharedInstanceWithAccessToken:(NSString *)token { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ if ( ! NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent) {