From: SeungWon Lee Date: Wed, 2 Oct 2013 08:03:31 +0000 (+0900) Subject: Resolve the "Klocwork" detected defect and add debug feature. X-Git-Tag: accepted/tizen/20131101.063356~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F11640%2F1;p=platform%2Fframework%2Fnative%2Fappfw.git Resolve the "Klocwork" detected defect and add debug feature. Change-Id: I4726a762ef605e1adf307b6cb0c9ca7d32be17fa Signed-off-by: SeungWon Lee --- diff --git a/src/app/FApp_AppSettingImpl.cpp b/src/app/FApp_AppSettingImpl.cpp index f7aabd9..d9aab4b 100644 --- a/src/app/FApp_AppSettingImpl.cpp +++ b/src/app/FApp_AppSettingImpl.cpp @@ -53,7 +53,6 @@ namespace Tizen { namespace App { const int APP_ID_LENTH = 10; -const int MAX_CONTENT_LEN = 512; const int MAX_LOCAL_BUFSIZE = 128; const char* DBUS_PATH = "/setting/dbus_handler"; const char* DBUS_SIGNAL_INTERFACE = "org.tizen.setting.signal"; @@ -664,7 +663,7 @@ result _AppSettingImpl::Load(void) { SysTryReturnResult(NID_APP, File::IsFileExist(__filePath), E_OBJ_NOT_FOUND, - "The instance of specified AppId does not have setting information."); + "The instance of specified AppId does not have setting information. %ls", __filePath.GetPointer()); result r = E_SUCCESS; std::unique_ptr pfilePath(Tizen::Base::Utility::StringUtil::StringToUtf8N(__filePath)); diff --git a/src/app/FApp_NotificationManagerImpl.cpp b/src/app/FApp_NotificationManagerImpl.cpp index 37bada6..82fbbf4 100644 --- a/src/app/FApp_NotificationManagerImpl.cpp +++ b/src/app/FApp_NotificationManagerImpl.cpp @@ -75,34 +75,6 @@ ConvertNotificationResult(int error) } } -bool -IsPosted(ui_notification_h handle) -{ - struct ui_notification_s - { - void* raw_handle; - bool ongoing; - bool posted; - bool removed; - char *icon; - struct tm *time; - char *title; - char *content; - service_h service; - char *sound; - bool vibration; - }; - - if (handle == NULL) - { - return false; - } - - ui_notification_s* pStruct = reinterpret_cast(handle); - - return pStruct->posted; -} - } namespace Tizen { namespace App