correct return value to match its type 59/106959/1
authorJongmin Lee <jm105.lee@samsung.com>
Mon, 26 Dec 2016 02:18:38 +0000 (11:18 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 26 Dec 2016 02:18:38 +0000 (11:18 +0900)
Change-Id: I46915c62f7aecaf947e63025cbc10dcaa389fa8f

src/lib/efl/mobile/c/ui_menu.cpp
src/lib/efl/mobile/c/ui_view.cpp

index c06bd2e566e4057229362838aa9833698537f9bf..7a139a856524427bd844f27ad55ea19a3978fa49 100644 (file)
@@ -56,7 +56,7 @@ EAPI int ui_menu_deactivate(ui_menu *menu)
 
 EAPI bool ui_menu_get_activated(ui_menu *menu)
 {
-       if (TIZEN_ERROR_NONE != validate_menu(menu)) return nullptr;
+       if (TIZEN_ERROR_NONE != validate_menu(menu)) return false;
 
        return menu->isActivated();
 }
index 16786c963dc681fe49f6551bed57d3c0a0b03f26..72ccd40a0c1ed2101ae106884e5ea360fcb973cc 100644 (file)
@@ -305,7 +305,7 @@ EAPI int ui_view_set_available_rotations(ui_view *view, const int *rotations, un
 
 EAPI const int *ui_view_get_available_rotations(ui_view *view, unsigned int *count)
 {
-       if (TIZEN_ERROR_NONE != validate_view(view)) return false;
+       if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
        return view->getAvailableRotations(count);
 }
 
@@ -366,6 +366,6 @@ EAPI int ui_view_set_content(ui_view *view, Eo *content)
 
 EAPI const char *ui_view_get_type(ui_view *view)
 {
-       if (TIZEN_ERROR_NONE != validate_view(view)) return false;
+       if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
        return dynamic_cast<ui_common_view_capi *>(view)->type;
 }