You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by be...@apache.org on 2012/01/13 16:59:07 UTC

[42/50] git commit: Fixed warning - implicit conversion of UIInterfaceOrientation to UIDeviceOrientation (which are equivalent, for the two Portraits and two Landscape orientations)

Fixed warning - implicit conversion of UIInterfaceOrientation to UIDeviceOrientation (which are equivalent, for the two Portraits and two Landscape orientations)


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/e3c1fb3b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/e3c1fb3b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/e3c1fb3b

Branch: refs/heads/master
Commit: e3c1fb3b1b81ff4490f0739dbf111615edf5312b
Parents: 334fecb
Author: shazron <sh...@gmail.com>
Authored: Fri Nov 25 16:08:38 2011 -0800
Committer: shazron <sh...@gmail.com>
Committed: Fri Nov 25 16:08:38 2011 -0800

----------------------------------------------------------------------
 PhoneGapLib/Classes/PhoneGapDelegate.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/e3c1fb3b/PhoneGapLib/Classes/PhoneGapDelegate.m
----------------------------------------------------------------------
diff --git a/PhoneGapLib/Classes/PhoneGapDelegate.m b/PhoneGapLib/Classes/PhoneGapDelegate.m
index 58c3f16..4c99cf5 100644
--- a/PhoneGapLib/Classes/PhoneGapDelegate.m
+++ b/PhoneGapLib/Classes/PhoneGapDelegate.m
@@ -401,7 +401,7 @@ BOOL gSplashScreenShown = NO;
 
     if (UIDeviceOrientationUnknown == curDevOrientation) {
         //UIDevice isn't firing orientation notifications yet...go look at status bar
-        curDevOrientation = [[UIApplication sharedApplication] statusBarOrientation];
+        curDevOrientation = (UIDeviceOrientation)[[UIApplication sharedApplication] statusBarOrientation];
     }
 
     if (UIDeviceOrientationIsValidInterfaceOrientation(curDevOrientation)) {