Skip to content

Commit

Permalink
Merge pull request #9289 from hansemannn/TIMOB-25046
Browse files Browse the repository at this point in the history
[TIMOB-25046] iOS: Fix peek-and-pop and other analyser warnings
  • Loading branch information
mukherjee2 committed Aug 15, 2017
2 parents 2e3b11d + 0fed7ee commit 63b4cb1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion iphone/Classes/TiMediaMusicPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ - (NSArray *)itemsFromArg:(id)args
subreason:nil
location:CODELOCATION];

return;
return items;
}

[items addObject:[query.items firstObject]];
Expand Down
9 changes: 1 addition & 8 deletions iphone/Classes/TiUIOptionDialogProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,14 @@ - (void)hide:(id)args
return;
}

id options = nil;
if ([args count] > 0) {
options = [args objectAtIndex:0];
}
BOOL animatedhide = [TiUtils boolValue:@"animated" properties:options def:YES];

TiThreadPerformOnMainThread(^{
if (alertController != nil) {
[alertController dismissViewControllerAnimated:animated
completion:^{
[self cleanup];
}];
}
},
NO);
}, NO);
}

- (void)suspended:(NSNotification *)note
Expand Down
4 changes: 2 additions & 2 deletions iphone/Classes/TiUIiOSPreviewActionProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ - (NSString *)apiName
- (UIPreviewAction *)action
{
if (action == nil) {
action = [UIPreviewAction actionWithTitle:_title
action = [[UIPreviewAction actionWithTitle:_title
style:_style
handler:^void(UIPreviewAction *_action, UIViewController *_controller) {
if ([self _hasListeners:@"click"]) {
[self fireEventWithAction:_action];
}
}];
}] retain];
}

return action;
Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/TiUIiOSPreviewContextProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ - (void)connectToDelegate
}

UIViewController *controller = [[[TiApp app] controller] topPresentedController];
[controller registerForPreviewingWithDelegate:[[[TiPreviewingDelegate alloc] initWithPreviewContext:self] autorelease]
[controller registerForPreviewingWithDelegate:[[TiPreviewingDelegate alloc] initWithPreviewContext:self]
sourceView:nativeSourceView];
}

Expand Down

0 comments on commit 63b4cb1

Please sign in to comment.