elm: No need for two set of parentheses in a simple comparison.
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 22 Mar 2013 08:42:04 +0000 (08:42 +0000)
committerStefan Schmidt <s.schmidt@samsung.com>
Fri, 22 Mar 2013 08:44:15 +0000 (08:44 +0000)
Seems this got copied around. Better fix it now before it widespreads more.

src/lib/elc_multibuttonentry.c
src/lib/elm_bubble.c
src/lib/elm_layout.c

index a70aa2d..81763e3 100644 (file)
@@ -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);
index da1acc1..7a651da 100644 (file)
@@ -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);
 }
 
index 5dda78f..06a7b6f 100644 (file)
@@ -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))
                {