Fixed the compile warning regarding type casting 00/38900/2
authorHyojung Jo <hj903.jo@samsung.com>
Thu, 30 Apr 2015 06:46:38 +0000 (15:46 +0900)
committerHyojung Jo <hj903.jo@samsung.com>
Thu, 30 Apr 2015 08:32:34 +0000 (17:32 +0900)
Change-Id: Iab64cfae813d6a2b2932de48365af3ec6cd729ff
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
src/view_maincatalog.cpp
src/view_need_pwd.cpp
src/view_pwd_popup.cpp
ug/network/src/NetworkMainView.cpp
ug/system/clock/src/ClockSpinControlView.cpp
ug/system/clock/src/ClockTimeSpinControlView.cpp
ug/wifi-direct/src/WifiDirectMainView.cpp

index 12014b0..8c76c26 100644 (file)
@@ -656,7 +656,8 @@ bool CMainCatalogView::m_DrawSubItems(const char *name)
 
        EINA_LIST_FOREACH(list, l, obj) {
                item = (struct settingitem *) obj;
-               btn = utils_add_btn(m->base, SUBITEMBTN_STYLE, settingitem_get_display_name(item), EINA_FALSE);
+               btn = utils_add_btn(m->base, (char *)SUBITEMBTN_STYLE,
+                               settingitem_get_display_name(item), EINA_FALSE);
                if (!btn) {
                        _ERR("Add btn failed");
                        evas_object_del(m->subitem_box);
@@ -809,7 +810,7 @@ bool CMainCatalogView::m_AddIconBtns(Eina_List *list)
        }
 
        for (int i = 0; i < m->main_item_count; i++) {
-               btn = utils_add_btn(m->base, MAINICONBTN_STYLE, NULL, EINA_FALSE);
+               btn = utils_add_btn(m->base, (char *)MAINICONBTN_STYLE, NULL, EINA_FALSE);
                if (!btn) {
                        _ERR("Add btn failed");
                        return false;
index 2f7b587..c5f52c4 100755 (executable)
@@ -189,8 +189,9 @@ static Evas_Object *_add_view_cancel_btn(SNeedPasscodeView *data)
        if (!data || !data->base)
                return NULL;
 
-       btn = utils_add_btn(data->base, PWD_BASIC_BTN,
-                       utils_get_translation_str(MSGID_CANCEL), EINA_TRUE);
+       btn = utils_add_btn(data->base, (char *)PWD_BASIC_BTN,
+                       utils_get_translation_str((char *)MSGID_CANCEL),
+                       EINA_TRUE);
        if (!btn) {
                _ERR("utils add button failed.");
                return NULL;
index c2653d9..f970635 100755 (executable)
@@ -193,7 +193,7 @@ static Evas_Object *_add_pwd_cancel_btn(SPasscodePopupView *data)
                return NULL;
 
        btn = utils_add_btn(data->base, PWD_BASIC_BTN,
-                       utils_get_translation_str((const char *) MSGID_CANCEL), EINA_TRUE);
+                       utils_get_translation_str((char *) MSGID_CANCEL), EINA_TRUE);
        if (!btn) {
                _ERR("utils add button failed.");
                return NULL;
index 42b608b..e2b3133 100644 (file)
 
 #include "NetworkMainView.h"
 
-static char *action_button[4]  = { TXT_CONNECT_BTN, TXT_REFRESH_BTN, TXT_OTHER_BTN, TXT_CLOSE_BTN };
-static char *button_swallow[4] = { PART_CONNECT_BTN, PART_REFRESH_BTN, PART_OTHER_BTN, PART_CLOSE_BTN };
-static char *popup_button[2]   = { TXT_WIRELESS, TXT_WIRED };
+static const char *action_button[4] = {
+       TXT_CONNECT_BTN,
+       TXT_REFRESH_BTN,
+       TXT_OTHER_BTN,
+       TXT_CLOSE_BTN
+};
+
+static const char *button_swallow[4] = {
+       PART_CONNECT_BTN,
+       PART_REFRESH_BTN,
+       PART_OTHER_BTN,
+       PART_CLOSE_BTN
+};
+
+static const char *popup_button[2] = {
+       TXT_WIRELESS,
+       TXT_WIRED
+};
 
 struct SNetworkMainView {
        ui_gadget_h ug;
index f7c1fd3..02d48e7 100644 (file)
@@ -201,7 +201,7 @@ void CClockSpinControlView::m_UpdateDateValue(Evas_Object *spin, int spin_idx)
 
                snprintf(buf, sizeof(buf), "%02d", m->date[spin_idx]);
        } else if (spin_idx == DATE_DAY) {
-               if (m->date[spin_idx] > days[m->date[DATE_MONTH] - 1])
+               if ((int)m->date[spin_idx] > days[m->date[DATE_MONTH] - 1])
                        m->date[spin_idx] = 1;
                if (m->date[spin_idx] <= 0)
                        m->date[spin_idx] = days[m->date[DATE_MONTH] - 1];
index f5ca90f..8f193c3 100644 (file)
@@ -286,7 +286,7 @@ bool CClockTimeSpinControlView::m_AddTimeSpin(void)
 
        count = eina_array_count(m->spin_array);
 
-       for (idx = TIME_HOUR; idx < count; idx++) {
+       for (idx = TIME_HOUR; idx < (int)count; idx++) {
                btn = (Evas_Object *) eina_array_data_get(m->spin_array, idx);
                if (!btn) {
                        _ERR("there is no button. idx: %d", idx);
@@ -302,7 +302,7 @@ bool CClockTimeSpinControlView::m_AddTimeSpin(void)
                                        ELM_FOCUS_RIGHT);
                        elm_object_focus_next_object_set(btn, (Evas_Object *) eina_array_data_get(m->spin_array, idx + 1),
                                        ELM_FOCUS_NEXT);
-               } else if (idx == count - 1) {
+               } else if (idx == (int)count - 1) {
                        elm_object_focus_next_object_set(btn, btn, ELM_FOCUS_RIGHT);
                        elm_object_focus_next_object_set(btn, (Evas_Object *) eina_array_data_get(m->spin_array, idx - 1), ELM_FOCUS_LEFT);
                } else {
index 93715d0..ca7e97f 100755 (executable)
@@ -8,11 +8,31 @@
 
 #include "WifiDirectMainView.h"
 
-const char *action_button[]   = { TXT_REFRESH_BTN, TXT_CLOSE_BTN, TXT_STOP_BTN };
-const char *popup_button_on[] = { TXT_ON_BTN, TXT_OFF_BTN };
-static char *popup_button_conn[] = { TXT_CONNECT, TXT_DISCONNECT };
-static char *popup_button_req[]  = { TXT_YES, TXT_NO };
-static char *part_req[] = { PART_YES, PART_NO };
+const char *action_button[] = {
+       TXT_REFRESH_BTN,
+       TXT_CLOSE_BTN,
+       TXT_STOP_BTN
+};
+
+const char *popup_button_on[] = {
+       TXT_ON_BTN,
+       TXT_OFF_BTN
+};
+
+static const char *popup_button_conn[] = {
+       TXT_CONNECT,
+       TXT_DISCONNECT
+};
+
+static const char *popup_button_req[] = {
+       TXT_YES,
+       TXT_NO
+};
+
+static const char *part_req[] = {
+       PART_YES,
+       PART_NO
+};
 
 enum action_btn_enum {
        ACTION_BTN_REFRESH,