Resolve the "Klocwork" detected defect and add debug feature. 40/11640/1
authorSeungWon Lee <lsw2000.lee@samsung.com>
Wed, 2 Oct 2013 08:03:31 +0000 (17:03 +0900)
committerjungmin76.park <jungmin76.park@samsung.com>
Fri, 1 Nov 2013 04:38:11 +0000 (13:38 +0900)
Change-Id: I4726a762ef605e1adf307b6cb0c9ca7d32be17fa
Signed-off-by: SeungWon Lee <lsw2000.lee@samsung.com>
src/app/FApp_AppSettingImpl.cpp
src/app/FApp_NotificationManagerImpl.cpp

index f7aabd9..d9aab4b 100644 (file)
@@ -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<ByteBuffer> pfilePath(Tizen::Base::Utility::StringUtil::StringToUtf8N(__filePath));
index 37bada6..82fbbf4 100644 (file)
@@ -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<ui_notification_s*>(handle);
-
-       return pStruct->posted;
-}
-
 }
 
 namespace Tizen { namespace App