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 <shaz...@gmail.com>
Authored: Fri Nov 25 16:08:38 2011 -0800
Committer: shazron <shaz...@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)) {

Reply via email to