Fix SVACE issue 68/167068/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 15 Jan 2018 07:42:07 +0000 (16:42 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 15 Jan 2018 07:53:52 +0000 (16:53 +0900)
- Expression 'orientation >= Dali::Window::PORTRAIT' is always true.

Change-Id: I813082a5a490ce84addcf05d4ea46bfc3814968f
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
adaptors/ecore/wayland/window-impl-ecore-wl.cpp

index ca805b5..f49f285 100644 (file)
@@ -849,11 +849,11 @@ void Window::AddAvailableOrientation(Dali::Window::WindowOrientation orientation
 {
   bool found = false;
 
-  if ((orientation >= Dali::Window::PORTRAIT) && (orientation <= Dali::Window::LANDSCAPE_INVERSE))
+  if ( orientation <= Dali::Window::LANDSCAPE_INVERSE )
   {
-    for( std::size_t i=0; i<mAvailableOrientations.size(); i++ )
+    for( std::size_t i = 0; i < mAvailableOrientations.size(); i++ )
     {
-      if(mAvailableOrientations[i] == orientation)
+      if( mAvailableOrientations[i] == orientation )
       {
         found = true;
         break;