Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
#1225 - Renaming getAccessToken method to sharedAccessToken to avoid …
Browse files Browse the repository at this point in the history
…any iOS get naming conventions
  • Loading branch information
bleege committed May 4, 2015
1 parent 0e36bf1 commit 7f6cc6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mbgl/ios/MGLAccountManager.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@interface MGLAccountManager : NSObject

+ (instancetype) sharedInstanceWithAccessToken:(NSString *)token;
+ (NSString *) getAccessToken;
+ (NSString *) sharedAccessToken;

@end
2 changes: 1 addition & 1 deletion platform/ios/MGLAccountManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ + (instancetype) sharedInstanceWithAccessToken:(NSString *)token {
return _sharedManager;
}

+ (NSString *) getAccessToken {
+ (NSString *) sharedAccessToken {
if (_sharedManager) {
return _sharedManager.accessToken;
}
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ - (instancetype)initWithFrame:(CGRect)frame
if (self && [self commonInit])
{
self.styleURL = nil;
self.accessToken = [MGLAccountManager getAccessToken];
self.accessToken = [MGLAccountManager sharedAccessToken];
return self;
}

Expand Down

0 comments on commit 7f6cc6c

Please sign in to comment.