fix build warning 49/153149/3 accepted/tizen/unified/20171010.063633 submit/tizen/20170929.023936
authorJongkyu Koo <jk.koo@samsung.com>
Thu, 28 Sep 2017 04:12:54 +0000 (13:12 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Thu, 28 Sep 2017 05:37:50 +0000 (05:37 +0000)
Change-Id: I42f138c0b87fbe4bf55f7edbb51e6f73f77fabd2
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
manager/src/msg-manager-notification.cpp

index e51b00a..909a0d6 100644 (file)
@@ -180,7 +180,7 @@ char *_get_app_id(void)
     if ('\0' != *g_app_id)
         return g_app_id;
 
-    char *app_id = NULL;
+    const char *app_id = NULL;
     switch (get_tizen_profile()) {
     case _PROFILE_WEARABLE:
         app_id = MSG_WEARABLE_APP_ID;
@@ -1027,12 +1027,12 @@ void setText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
        case MSG_MGR_NOTI_TYPE_MMS_READ_REPORT: {
                setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_TITLE, "Read Report", READ_REPORT_MESSAGE);
 
-               char readStatusString[50] = {0,};
+               char readStatusString[50] = {0, };
                if (noti_info->extra_data == MSG_READ_REPORT_IS_DELETED) {
                        snprintf(readStatusString, sizeof(readStatusString), "Message deleted by %s", noti_info->sender);
                        notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, readStatusString, MESSAGE_DELETED_BY_PS, NOTIFICATION_VARIABLE_TYPE_STRING, noti_info->sender, NOTIFICATION_VARIABLE_TYPE_NONE);
                } else {
-                       char readStatusString[50] = {0,};
+                       char readStatusString[50] = {0, };
                        snprintf(readStatusString, sizeof(readStatusString), "Message read by %s", noti_info->sender);
                        notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, readStatusString, MESSAGE_READ_BY_PS, NOTIFICATION_VARIABLE_TYPE_STRING, noti_info->sender, NOTIFICATION_VARIABLE_TYPE_NONE);
                }
@@ -1277,7 +1277,7 @@ void setActiveText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
                                setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, noti_info->active_text, NULL);
                        } else {
                                if (noti_info->active_media_cnt > 1) {
-                                       char attach_string[20] = {0,};
+                                       char attach_string[20] = {0, };
                                        snprintf(attach_string, sizeof(attach_string), "%d attachments", noti_info->active_media_cnt);
                                        notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, MSG_PD_ATTACHMENTS, NOTIFICATION_VARIABLE_TYPE_INT, noti_info->active_media_cnt, NOTIFICATION_VARIABLE_TYPE_NONE);
                                } else if (noti_info->active_media_cnt == 1) {
@@ -1291,7 +1291,7 @@ void setActiveText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
                                setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, noti_info->active_text, NULL);
                        } else {
                                if (noti_info->active_media_cnt > 1) {
-                                       char attach_string[20] = {0,};
+                                       char attach_string[20] = {0, };
                                        snprintf(attach_string, sizeof(attach_string), "%d attachments", noti_info->active_media_cnt);
                                        setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, NULL);
                                } else if (noti_info->active_media_cnt == 1) {
@@ -2164,7 +2164,7 @@ int getLatestMsgInfo(MSG_MGR_NOTI_INFO_S *noti_info, bool isForInstantMessage)
                                noti_info->id = 0;
 
                                if (MsgSettingSetInt(CB_NOTI_PRIV_ID, noti_info->id) != MSG_SUCCESS)
-                                       MSG_MGR_DEBUG("MsgSettingSetInt fail : CB_NOTI_PRIV_ID");
+                                       MSG_MGR_DEBUG("MsgSettingSetInt Fail : CB_NOTI_PRIV_ID");
                        }
                        return MSG_ERR_DB_STEP;
                }