From f93ed92a53732f26290587f91bbd6ac1dbf78ec1 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 22 Mar 2013 08:42:04 +0000 Subject: [PATCH] elm: No need for two set of parentheses in a simple comparison. Seems this got copied around. Better fix it now before it widespreads more. --- src/lib/elc_multibuttonentry.c | 8 ++++---- src/lib/elm_bubble.c | 2 +- src/lib/elm_layout.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c index a70aa2d..81763e3 100644 --- a/src/lib/elc_multibuttonentry.c +++ b/src/lib/elc_multibuttonentry.c @@ -336,7 +336,7 @@ _elm_multibuttonentry_smart_on_focus(Eo *obj, void *_pd, va_list *list) if (elm_widget_focus_get(obj)) { // ACCESS - if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON)) goto end; + if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) goto end; if (sd->editable) { @@ -703,7 +703,7 @@ _button_item_add(Elm_Multibuttonentry_Smart_Data *sd, item->visible = EINA_TRUE; // ACCESS - if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON)) + if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) { const char *text; Eina_Strbuf *buf; @@ -847,7 +847,7 @@ _elm_multibuttonentry_smart_event(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va if (ret) *ret = EINA_FALSE; // ACCESS - if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON)) return; + if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) return; if (ret) *ret = EINA_TRUE; } @@ -1375,7 +1375,7 @@ _view_init(Evas_Object *obj, Elm_Multibuttonentry_Smart_Data *sd) elm_widget_sub_object_add(obj, sd->label); // ACCESS - if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON)) + if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) _access_multibuttonentry_label_register(obj, EINA_TRUE); sd->entry = elm_entry_add(obj); diff --git a/src/lib/elm_bubble.c b/src/lib/elm_bubble.c index da1acc1..7a651da 100644 --- a/src/lib/elm_bubble.c +++ b/src/lib/elm_bubble.c @@ -217,7 +217,7 @@ _elm_bubble_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED) elm_layout_sizing_eval(obj); - if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON)) + if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) elm_widget_can_focus_set(obj, EINA_TRUE); } diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c index 5dda78f..06a7b6f 100644 --- a/src/lib/elm_layout.c +++ b/src/lib/elm_layout.c @@ -776,7 +776,7 @@ _elm_layout_smart_content_set(Eo *obj, void *_pd, va_list *list) EINA_LIST_FOREACH(sd->subs, l, sub_d) { - if ((sub_d->type == SWALLOW)) + if (sub_d->type == SWALLOW) { if (!strcmp(part, sub_d->part)) { -- 2.7.4