Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CordovaLib/Classes/Public/CDVPluginResult.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ - (CDVPluginResult*)initWithStatus:(CDVCommandStatus)statusOrdinal message:(id)t
{
self = [super init];
if (self) {
status = [NSNumber numberWithInt:statusOrdinal];
status = @(statusOrdinal);
message = theMessage;
keepCallback = [NSNumber numberWithBool:NO];
}
Expand Down
2 changes: 1 addition & 1 deletion CordovaLib/Classes/Public/CDVViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ - (UIInterfaceOrientationMask)supportedInterfaceOrientations

- (BOOL)supportsOrientation:(UIInterfaceOrientation)orientation
{
return [self.supportedOrientations containsObject:[NSNumber numberWithInt:orientation]];
return [self.supportedOrientations containsObject:@(orientation)];
}

- (UIView*)newCordovaViewWithFrame:(CGRect)bounds
Expand Down