Fix coding style 89/126489/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 24 Apr 2017 00:11:20 +0000 (09:11 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 24 Apr 2017 00:11:20 +0000 (09:11 +0900)
[SPC_M_SEP]Missing space before ( in if(  [whitespace/parens] [5]

Change-Id: I5b403973d5887812e815d5773750e2a84d42272e
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/w-input-selector.cpp

index 3dacfb2..7b08443 100755 (executable)
@@ -134,10 +134,10 @@ void init_customizing_theme(void)
        string stt_edj_path = get_resource_path();
        string app_edj_path = get_resource_path();
 
-       if(_WEARABLE) {
+       if (_WEARABLE) {
                stt_edj_path = stt_edj_path + STT_EDJ_FILE_WEARABLE;
                app_edj_path = app_edj_path + APP_EDJ_FILE_WEARABLE;
-       } else if(_MOBILE) {
+       } else if (_MOBILE) {
                stt_edj_path = stt_edj_path + STT_EDJ_FILE_MOBILE;
                app_edj_path = app_edj_path + APP_EDJ_FILE_MOBILE;
        }
@@ -160,7 +160,7 @@ static void _stt_clicked_cb(void *data, Evas_Object * obj, void *event_info)
 
        PRINTFUNC(DLOG_DEBUG, "");
 
-       if(!ad)
+       if (!ad)
                return;
 
        ise_show_stt_popup(ad);
@@ -177,7 +177,7 @@ static void _emoticon_clicked_cb(void *data, Evas_Object * obj, void *event_info
 
        PRINTFUNC(DLOG_DEBUG, "");
 
-       if(!ad)
+       if (!ad)
                return;
 
        ise_show_emoticon_list(ad);
@@ -215,12 +215,12 @@ static void __ise_template_gl_sel(void *data, Evas_Object *obj, void *event_info
 
 static char * __ise_template_gl_text_get(void *data, Evas_Object *obj, const char *part)
 {
-       if(!strcmp(part, "elm.text")) {
+       if (!strcmp(part, "elm.text")) {
                unsigned int index = (uintptr_t)data;
                const std::vector<TemplateData>  template_list = input_template_get_list();
 
-               if(index < template_list.size()) {
-                       if(template_list[index].use_gettext) {
+               if (index < template_list.size()) {
+                       if (template_list[index].use_gettext) {
                                return strdup(gettext(template_list[index].text.c_str()));
                        } else {
                                Eina_Strbuf *buf = NULL;
@@ -228,7 +228,7 @@ static char * __ise_template_gl_text_get(void *data, Evas_Object *obj, const cha
                                char *markup = NULL;
 
                                buf = eina_strbuf_new();
-                               if(buf) {
+                               if (buf) {
                                        eina_strbuf_append(buf, template_list[index].text.c_str());
                                        eina_strbuf_replace_all(buf, "\n", "");
                                        eina_strbuf_replace_all(buf, "\r", "");
@@ -267,7 +267,7 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
 
                if (!strcmp(part, "elm.icon.1")) {
                        string path_ic;
-                       if(!strcmp(first_input_type, "input_voice")) {
+                       if (!strcmp(first_input_type, "input_voice")) {
                                elm_object_style_set(btn, "ime_button_stt");
                                path_ic = path + "images/w_mode_stt_ic.png";
                        } else if (!strcmp(first_input_type, "input_emoticon")) {
@@ -283,7 +283,7 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                        evas_object_layer_set(btn, 32000);
                } else if (!strcmp(part, "elm.icon.2")){
                        string path_ic;
-                       if(!strcmp(second_input_type, "input_voice")) {
+                       if (!strcmp(second_input_type, "input_voice")) {
                                elm_object_style_set(btn, "ime_button_stt");
                                path_ic = path + "images/w_mode_stt_ic.png";
                        } else if (!strcmp(second_input_type, "input_emoticon")) {
@@ -307,7 +307,7 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                string path = get_resource_path();
                if (!strcmp(part, "elm.icon.1.touch_area")) {
                        evas_object_layer_set(btn, 32000);
-                       if(!strcmp(first_input_type, "input_voice")) {
+                       if (!strcmp(first_input_type, "input_voice")) {
                                evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
                        } else if (!strcmp(first_input_type, "input_emoticon")) {
                                evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
@@ -317,7 +317,7 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                        }
                } else if (!strcmp(part, "elm.icon.2.touch_area")){
                        evas_object_layer_set(btn, 32000);
-                       if(!strcmp(second_input_type, "input_voice")) {
+                       if (!strcmp(second_input_type, "input_voice")) {
                                evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
                        } else if (!strcmp(second_input_type, "input_emoticon")) {
                                evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
@@ -410,7 +410,7 @@ static void __ise_gl_lang_changed(void *data, Evas_Object *obj, void *event_info
 
 void set_source_caller_app_id(app_control_h app_control)
 {
-       if(!app_control){
+       if (!app_control){
                PRINTFUNC(DLOG_ERROR, "can't get app_control");
                return;
        }
@@ -418,7 +418,7 @@ void set_source_caller_app_id(app_control_h app_control)
        char *caller = NULL;
        app_control_get_caller(app_data->source_app_control, &caller);
 
-       if(caller){
+       if (caller){
                PRINTFUNC(DLOG_DEBUG, "caller = %s", caller);
                app_control_add_extra_data(app_control, "caller_appid", caller);
                free(caller);
@@ -431,7 +431,7 @@ void reply_to_sender_by_callback(const char *value, const char *type)
 
        app_control_h app_control;
 
-       if(app_control_create(&app_control) == 0) {
+       if (app_control_create(&app_control) == 0) {
                int ret;
 
                if (value)
@@ -458,7 +458,7 @@ void reply_to_sender_by_callback_for_back()
 
        app_control_h app_control;
 
-       if(app_control_create(&app_control) == 0) {
+       if (app_control_create(&app_control) == 0) {
                int ret;
 
                app_control_add_extra_data(app_control, "back_to_composer", "yes");
@@ -475,7 +475,7 @@ void reply_to_sender_by_callback_for_back()
 
 char* get_resource_path()
 {
-       if(NULL == app_data->res_path) {
+       if (NULL == app_data->res_path) {
                app_data->res_path = app_get_resource_path();
                PRINTFUNC(DLOG_INFO, "set resource path = %s", app_data->res_path);
        }
@@ -484,7 +484,7 @@ char* get_resource_path()
 
 char* get_shared_resource_path()
 {
-       if(NULL == app_data->shared_res_path) {
+       if (NULL == app_data->shared_res_path) {
                app_data->shared_res_path = app_get_shared_resource_path();
                PRINTFUNC(DLOG_INFO, "set shared resource path = %s", app_data->shared_res_path);
        }
@@ -492,10 +492,10 @@ char* get_shared_resource_path()
 }
 
 void show_gl_focus(Eina_Bool bVisible){
-       if(app_data->genlist == NULL)
+       if (app_data->genlist == NULL)
                return;
 
-       if(bVisible == EINA_TRUE){
+       if (bVisible == EINA_TRUE){
                elm_object_signal_emit(app_data->genlist, "elm,state,focus_bg,enable", "elm");
                //elm_layout_theme_set(app_data->genlist, "genlist", "base", "focus_bg");
                //elm_object_signal_emit(app_data->genlist, "elm,state,focus_bg,show", "elm");
@@ -528,7 +528,7 @@ void show_popup_toast(const char *text, bool check_img)
                elm_image_file_set(img, path_ic.c_str(), NULL);
                elm_object_part_content_set(popup, "toast,icon", img);
        }
-       if(text) {
+       if (text) {
                elm_object_part_text_set(popup, "elm.text", text);
        }
 
@@ -542,7 +542,7 @@ void show_popup_toast(const char *text, bool check_img)
 
 static void _popup_close_cb(void *data, Evas_Object *obj, void *event_info)
 {
-       if(obj){
+       if (obj){
                evas_object_hide(obj);
                evas_object_del(obj);
        }
@@ -550,7 +550,7 @@ static void _popup_close_cb(void *data, Evas_Object *obj, void *event_info)
 
 static void _popup_back_cb(void *data, Evas_Object *obj, void *event_info)
 {
-       if(obj)
+       if (obj)
                elm_popup_dismiss(obj);
 }
 
@@ -559,9 +559,9 @@ void _back_to_genlist_for_selector()
 {
        PRINTFUNC(DLOG_DEBUG, "");
 
-       if(!app_data) return;
+       if (!app_data) return;
 
-       if(app_data->app_type == APP_TYPE_STT || app_data->app_type == APP_TYPE_EMOTICON){
+       if (app_data->app_type == APP_TYPE_STT || app_data->app_type == APP_TYPE_EMOTICON){
                PRINTFUNC(DLOG_DEBUG, "launched as STT/EMOTICON mode, So exit here.");
                reply_to_sender_by_callback(NULL, NULL);
                elm_exit();
@@ -580,7 +580,7 @@ static void _item_realized(void *data, Evas_Object *obj, void *event_info) //cal
 Evas_Object* _create_genlist(Evas_Object* navi)
 {
        Evas_Object* genlist = elm_genlist_add(navi);
-       if(NULL == genlist)
+       if (NULL == genlist)
                return NULL;
 
        elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);
@@ -615,8 +615,8 @@ Evas_Object* _create_genlist(Evas_Object* navi)
 
 static void _item_position_changed_cb(void *data, Evas_Object *obj, void *event_info)
 {
-       if(!obj) return;
-       if(!data) return;
+       if (!obj) return;
+       if (!data) return;
 
        Evas_Object *genlist = (Evas_Object *)obj;
        Elm_Object_Item *gen_item = (Elm_Object_Item *)data;
@@ -657,9 +657,9 @@ void _create_genlist_items(void* user_data)
 {
        App_Data* app_data = (App_Data*) user_data;
 
-       if(NULL == app_data->genlist) {
+       if (NULL == app_data->genlist) {
                app_data->genlist = _create_genlist(app_data->naviframe);
-               if(NULL == app_data->genlist)
+               if (NULL == app_data->genlist)
                return;
        }
 
@@ -673,7 +673,7 @@ void _create_genlist_items(void* user_data)
        itc0->func.del = NULL;
 
        Elm_Genlist_Item_Class * itc1 = elm_genlist_item_class_new();
-       if(g_input_type_data.input_type_array_len == 2){
+       if (g_input_type_data.input_type_array_len == 2){
                itc1->item_style = "2button_flat";
                itc1->func.text_get = NULL;
                itc1->func.content_get = __ise_gl_2button_content_get;
@@ -912,7 +912,7 @@ void _app_service(app_control_h service, void* user_data)
        app_data->reply_type = REPLY_APP_NORMAL;
 
        ret = app_control_is_extra_data_array(service, APP_CONTROL_DATA_INPUT_TYPE, &is_extra_data_array);
-       if( is_extra_data_array == true) {
+       if ( is_extra_data_array == true) {
                ret = app_control_get_extra_data_array(service, APP_CONTROL_DATA_INPUT_TYPE, &input_type_array, &input_type_array_len);
                g_input_type_data.input_type_array = input_type_array;
                g_input_type_data.input_type_array_len = input_type_array_len;
@@ -951,7 +951,7 @@ void _app_service(app_control_h service, void* user_data)
 ACTIVATE :
        elm_win_activate(app_data->win_main);
 
-       if(context)
+       if (context)
                free(context);
 }
 
@@ -972,14 +972,14 @@ void _app_terminate(void* user_data)
        App_Data* app_data = NULL;
        app_data = (App_Data*)user_data;
 
-       if(app_data->genlist){
+       if (app_data->genlist){
                evas_object_smart_callback_del(app_data->genlist, "elm,item,position,changed", _item_position_changed_cb);
        }
 
-       if(app_data->res_path)
+       if (app_data->res_path)
                free(app_data->res_path);
 
-       if(app_data->shared_res_path)
+       if (app_data->shared_res_path)
                free(app_data->shared_res_path);
 
        input_keyboard_deinit();