Skip to content

Commit

Permalink
Merge pull request mixpanel#53 from markonikolovski/instancetype
Browse files Browse the repository at this point in the history
Changed `id` return type to `instancetype`
  • Loading branch information
neilrahilly committed Apr 24, 2013
2 parents 9e9db15 + c43b58f commit bc5fae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Mixpanel/Mixpanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
@param apiToken your project token
*/
+ (id)sharedInstanceWithToken:(NSString *)apiToken;
+ (instancetype)sharedInstanceWithToken:(NSString *)apiToken;

/*!
@method
Expand All @@ -181,7 +181,7 @@
The API must be initialized with <code>sharedInstanceWithToken:</code> before
calling this class method.
*/
+ (id)sharedInstance;
+ (instancetype)sharedInstance;

/*!
@method
Expand Down
4 changes: 2 additions & 2 deletions Mixpanel/Mixpanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ + (void)assertPropertyTypes:(NSDictionary *)properties

#pragma mark * Initializiation

+ (id)sharedInstanceWithToken:(NSString *)apiToken
+ (instancetype)sharedInstanceWithToken:(NSString *)apiToken
{
@synchronized(self) {
if (sharedInstance == nil) {
Expand All @@ -357,7 +357,7 @@ + (id)sharedInstanceWithToken:(NSString *)apiToken
}
}

+ (id)sharedInstance
+ (instancetype)sharedInstance
{
@synchronized(self) {
if (sharedInstance == nil) {
Expand Down

0 comments on commit bc5fae8

Please sign in to comment.