Skip to content

Commit 755484b

Browse files
PlanetaryCodedpogue
authored andcommitted
Fix type warnings and simplify code with auto boxing.
1 parent fb49478 commit 755484b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CordovaLib/Classes/Public/CDVPluginResult.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ - (CDVPluginResult*)initWithStatus:(CDVCommandStatus)statusOrdinal message:(id)t
103103
{
104104
self = [super init];
105105
if (self) {
106-
status = [NSNumber numberWithInt:statusOrdinal];
106+
status = @(statusOrdinal);
107107
message = theMessage;
108108
keepCallback = [NSNumber numberWithBool:NO];
109109
}

CordovaLib/Classes/Public/CDVViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ - (UIInterfaceOrientationMask)supportedInterfaceOrientations
472472

473473
- (BOOL)supportsOrientation:(UIInterfaceOrientation)orientation
474474
{
475-
return [self.supportedOrientations containsObject:[NSNumber numberWithInt:orientation]];
475+
return [self.supportedOrientations containsObject:@(orientation)];
476476
}
477477

478478
- (UIView*)newCordovaViewWithFrame:(CGRect)bounds

0 commit comments

Comments
 (0)