diff options
author | Ji-hoon Lee <dalton.lee@samsung.com> | 2018-05-02 10:59:18 +0900 |
---|---|---|
committer | Ji-hoon Lee <dalton.lee@samsung.com> | 2018-05-02 10:59:23 +0900 |
commit | a13eaac8c326c938ec5a3ad9236aebb83e1d1dc4 (patch) | |
tree | eb6383e0a8dfa6fcfb48707a12fdb41afae504bd /ism/extras | |
parent | f8ce513d8b8d7c883a8b94dbc66bddbf8d07b98e (diff) | |
download | isf-a13eaac8c326c938ec5a3ad9236aebb83e1d1dc4.tar.gz isf-a13eaac8c326c938ec5a3ad9236aebb83e1d1dc4.tar.bz2 isf-a13eaac8c326c938ec5a3ad9236aebb83e1d1dc4.zip |
Fix defects detected by static analysis tool
Some of the local variables' names are identical to
function parameters, unintentionally hides parameters.
Change-Id: Id0c023e315a0a9818b86550e8e8fcca7963962b3
Diffstat (limited to 'ism/extras')
-rw-r--r-- | ism/extras/wayland_immodule/wayland_imcontext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index 05459187..6aabfc71 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -885,14 +885,14 @@ rotary_event_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) ecore_imf_context_reset(active_ctx); WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(active_ctx); if (imcontext && imcontext->input && imcontext->text_input) { - isf_device_type_e type = find_device_type_from_ecore_event(ECORE_EVENT_DETENT_ROTATE); + isf_device_type_e device_type = find_device_type_from_ecore_event(ECORE_EVENT_DETENT_ROTATE); char *buffer = NULL; size_t buflen = 0; if (device_buffer_encode((const char*)(event), sizeof(Ecore_Event_Detent_Rotate), &buffer, &buflen) && buffer && buflen > 0) { wl_text_input_process_input_device_event(imcontext->text_input, - (unsigned int)type, buffer, buflen); + (unsigned int)device_type, buffer, buflen); } if (buffer) free(buffer); } @@ -3387,10 +3387,10 @@ wayland_im_context_filter_event(Ecore_IMF_Context *ctx, if (eina_list_count (imcontext->keysym_list)) { Eina_List *n = eina_list_last(imcontext->keysym_list); ev = (Ecore_Event_Key *)eina_list_data_get(n); - int type = (unsigned long int)ev->data; + int event_type = (unsigned long int)ev->data; ev->data = NULL; - ecore_event_add(type, ev, _ecore_keyevent_free, NULL); + ecore_event_add(event_type, ev, _ecore_keyevent_free, NULL); imcontext->keysym_list = eina_list_remove_list(imcontext->keysym_list, n); } } |