diff options
author | Zsika Phillip <protocol86@users.noreply.github.com> | 2018-02-26 09:48:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-26 09:48:09 -0800 |
commit | d4ec10577a40e8a913070cf40a29636c41aafbd2 (patch) | |
tree | 74267fbcdb2d4b7707a9989d31a47e9f309a5f28 /Firebase/Auth/Source/FIRAuthAPNSTokenManager.m | |
parent | 13e366738463739f0c21d4cedab4bafbfdb57c6f (diff) |
Fixes clang warnings for Auth (#848)
* Fixes clang warnings for Auth
* Addresses comments
Diffstat (limited to 'Firebase/Auth/Source/FIRAuthAPNSTokenManager.m')
-rw-r--r-- | Firebase/Auth/Source/FIRAuthAPNSTokenManager.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Firebase/Auth/Source/FIRAuthAPNSTokenManager.m b/Firebase/Auth/Source/FIRAuthAPNSTokenManager.m index 215a391..2b39aef 100644 --- a/Firebase/Auth/Source/FIRAuthAPNSTokenManager.m +++ b/Firebase/Auth/Source/FIRAuthAPNSTokenManager.m @@ -68,13 +68,13 @@ static const NSTimeInterval kLegacyRegistrationTimeout = 30; _pendingCallbacks = [[NSMutableArray<FIRAuthAPNSTokenCallback> alloc] initWithObjects:callback, nil]; dispatch_async(dispatch_get_main_queue(), ^{ - if ([_application respondsToSelector:@selector(registerForRemoteNotifications)]) { - [_application registerForRemoteNotifications]; + if ([self->_application respondsToSelector:@selector(registerForRemoteNotifications)]) { + [self->_application registerForRemoteNotifications]; } else { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" #if TARGET_OS_IOS - [_application registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert]; + [self->_application registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert]; #endif // TARGET_OS_IOS #pragma clang diagnostic pop } @@ -83,7 +83,7 @@ static const NSTimeInterval kLegacyRegistrationTimeout = 30; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(_timeout * NSEC_PER_SEC)), FIRAuthGlobalWorkQueue(), ^{ // Only cancel if the pending callbacks remain the same, i.e., not triggered yet. - if (applicableCallbacks == _pendingCallbacks) { + if (applicableCallbacks == self->_pendingCallbacks) { [self callBackWithToken:nil error:nil]; } }); |