remove warning messages
authorkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 17 Jul 2013 06:23:32 +0000 (15:23 +0900)
committerkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 17 Jul 2013 06:34:40 +0000 (15:34 +0900)
Change-Id: I39f97013834982449091b6a83f8833266b1da92b
Signed-off-by: kyeongwoo.lee <kyeongwoo.lee@samsung.com>
src/FShell_AppWidgetProviderManagerImpl.cpp
src/core/FShell_ShortcutManagerImpl.cpp

index df158a7..954862d 100644 (file)
@@ -247,8 +247,8 @@ _AppWidgetProviderManagerImpl::RequestUpdate(const AppId& appId, const String& p
                }
                unique_ptr<char[]> pPkgName(_StringConverter::CopyToCharArrayN(providerId));
                int ret = livebox_service_trigger_update(pPkgName.get(), null, null, null, 1);
-               SysTryReturnResult(NID_SHELL, ret != LB_STATUS_ERROR_NOT_EXIST, E_OBJ_NOT_FOUND, "There is no instance for the dynamic box to be updated." );
-               SysTryReturnResult(NID_SHELL, ret == LB_STATUS_SUCCESS || ret == LB_STATUS_ERROR_CANCEL, E_SYSTEM, "Failed to invoke livebox_service_trigger_update() with reason(%d)", ret);
+               SysTryReturnResult(NID_SHELL, ret != static_cast<int>(LB_STATUS_ERROR_NOT_EXIST), E_OBJ_NOT_FOUND, "There is no instance for the dynamic box to be updated." );
+               SysTryReturnResult(NID_SHELL, ret == static_cast<int>(LB_STATUS_SUCCESS) || ret == static_cast<int>(LB_STATUS_ERROR_CANCEL), E_SYSTEM, "Failed to invoke livebox_service_trigger_update() with reason(%d)", ret);
 
                return E_SUCCESS;
        }
@@ -362,7 +362,7 @@ _AppWidgetProviderManagerImpl::AddAppWidget(const AppId& providerAppId, const St
        unique_ptr<char[]> pIcon(_StringConverter::CopyToCharArrayN(iconPath));
 
        int ret = add_to_home_livebox(pProviderId.get(), pName.get(), LIVEBOX_TYPE_DEFAULT, pContent.get(), pIcon.get(), -1.0l, true, AddAppWidgetCallback, this);
-       SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_COMM, E_CONNECTION_FAILED, "Failed to add_to_home_livebox");
+       SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_COMM), E_CONNECTION_FAILED, "Failed to add_to_home_livebox");
        SysTryReturnResult(NID_SHELL, ret == SHORTCUT_SUCCESS, E_SYSTEM, "Failed to add_to_home_livebox (%s)", strerror(r));
 
        return E_SUCCESS;
index d2ee852..eff69fa 100644 (file)
@@ -152,8 +152,8 @@ _ShortcutManagerImpl::AddShortcut(const AppId& appId, const String& displayName,
        int type = (uriData.IsEmpty())? LAUNCH_BY_PACKAGE : LAUNCH_BY_URI;
 
        int ret = add_to_home_shortcut(pAppId.get(), pName.get(), type, pUriData.get(), pIcon.get(), allowDuplication, NULL, this);
-       SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_COMM, E_SUCCESS, "It's failed to add_to_home_shortcut, but regarded as success.");
-       SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_MEMORY, E_OUT_OF_MEMORY, "It's failed to add_to_home_shortcut.");
+       SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_COMM), E_SUCCESS, "It's failed to add_to_home_shortcut, but regarded as success.");
+       SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_MEMORY), E_OUT_OF_MEMORY, "It's failed to add_to_home_shortcut.");
        SysTryReturnResult(NID_SHELL, ret == SHORTCUT_SUCCESS, E_SYSTEM, "Failed to add_to_home_shortcut");
 
        SysLog(NID_SHELL, "Successed.");
@@ -167,8 +167,8 @@ _ShortcutManagerImpl::RemoveShortcut(const Tizen::App::AppId& appId, const Tizen
        std::unique_ptr<char[]> pName(_StringConverter::CopyToCharArrayN(displayName));
 
        int ret = add_to_home_remove_shortcut(pAppId.get(), pName.get(), "", null, this);
-       SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_COMM, E_SUCCESS, "It's failed to add_to_home_remove_shortcut, but regarded as success.");
-       SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_MEMORY, E_OUT_OF_MEMORY, "It's failed to add_to_home_remove_shortcut.");
+       SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_COMM), E_SUCCESS, "It's failed to add_to_home_remove_shortcut, but regarded as success.");
+       SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_MEMORY), E_OUT_OF_MEMORY, "It's failed to add_to_home_remove_shortcut.");
        SysTryReturnResult(NID_SHELL, ret == SHORTCUT_SUCCESS, E_SYSTEM, "It's failed to add_to_home_remove_shortcut, with reason (%d)");
 
        return E_SUCCESS;