mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix some compiler warnings
These seem to appear if the project is ARC based, even though this lib is non ARC as of now
This commit is contained in:
@@ -397,7 +397,10 @@
|
|||||||
|
|
||||||
// special addition to get rootViewController from three20 which has it's own controller handling
|
// special addition to get rootViewController from three20 which has it's own controller handling
|
||||||
if (NSClassFromString(@"TTNavigator")) {
|
if (NSClassFromString(@"TTNavigator")) {
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
|
||||||
parentViewController = [[NSClassFromString(@"TTNavigator") performSelector:(NSSelectorFromString(@"navigator"))] visibleViewController];
|
parentViewController = [[NSClassFromString(@"TTNavigator") performSelector:(NSSelectorFromString(@"navigator"))] visibleViewController];
|
||||||
|
#pragma clang diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_navController != nil) [_navController release];
|
if (_navController != nil) [_navController release];
|
||||||
@@ -1049,7 +1052,7 @@
|
|||||||
// invoke the selected action from the actionsheet for a location element
|
// invoke the selected action from the actionsheet for a location element
|
||||||
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
|
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
|
||||||
if ([alertView tag] == 2) {
|
if ([alertView tag] == 2) {
|
||||||
[self initiateAppDownload];
|
(void)[self initiateAppDownload];
|
||||||
_updateAlertShowing = NO;
|
_updateAlertShowing = NO;
|
||||||
return;
|
return;
|
||||||
} else if ([alertView tag] == 1) {
|
} else if ([alertView tag] == 1) {
|
||||||
@@ -1063,7 +1066,7 @@
|
|||||||
[self showUpdateView];
|
[self showUpdateView];
|
||||||
} else if (buttonIndex == [alertView firstOtherButtonIndex] + 1) {
|
} else if (buttonIndex == [alertView firstOtherButtonIndex] + 1) {
|
||||||
// YES button has been clicked
|
// YES button has been clicked
|
||||||
[self initiateAppDownload];
|
(void)[self initiateAppDownload];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -236,7 +236,10 @@
|
|||||||
SEL presentingViewControllerSelector = NSSelectorFromString(@"presentingViewController");
|
SEL presentingViewControllerSelector = NSSelectorFromString(@"presentingViewController");
|
||||||
UIViewController *presentingViewController = nil;
|
UIViewController *presentingViewController = nil;
|
||||||
if ([self respondsToSelector:presentingViewControllerSelector]) {
|
if ([self respondsToSelector:presentingViewControllerSelector]) {
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
|
||||||
presentingViewController = [self performSelector:presentingViewControllerSelector];
|
presentingViewController = [self performSelector:presentingViewControllerSelector];
|
||||||
|
#pragma clang diagnostic pop
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
presentingViewController = [self parentViewController];
|
presentingViewController = [self parentViewController];
|
||||||
|
|||||||
Reference in New Issue
Block a user