rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=d7d83515c0bd9797d206f870074047b8c3bd364f

commit d7d83515c0bd9797d206f870074047b8c3bd364f
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Feb 2 15:20:49 2016 +0200

    fix clang warning: equality comparison with extraneous parentheses
---
 src/bin/ui/group_navigator.c          | 6 +++---
 src/bin/ui/workspace/groupedit_calc.c | 4 ++--
 src/bin/ui/workspace/workspace.c      | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/bin/ui/group_navigator.c b/src/bin/ui/group_navigator.c
index f62c139..6f5a385 100644
--- a/src/bin/ui/group_navigator.c
+++ b/src/bin/ui/group_navigator.c
@@ -549,7 +549,7 @@ _selected_cb(void *data,
              else
                elm_object_disabled_set(pl->btn_down, false);
           }
-        else if ((itc == pl->itc_item))
+        else if (itc == pl->itc_item)
           {
              if 
(elm_genlist_item_item_class_get(elm_genlist_item_prev_get(glit)) == 
pl->itc_item)
                elm_object_disabled_set(pl->btn_up, false);
@@ -1400,9 +1400,9 @@ _on_btn_minus_clicked(void *data,
      _part_del(pl, glit);
    else if ((itc == pl->itc_state_selected) || (itc == pl->itc_state))
      _state_del(pl, glit);
-   else if ((itc == pl->itc_item))
+   else if (itc == pl->itc_item)
      _item_del(pl, glit);
-   else if ((itc == pl->itc_program))
+   else if (itc == pl->itc_program)
      _program_del(pl, glit);
 
    TODO("Check if we still need this")
diff --git a/src/bin/ui/workspace/groupedit_calc.c 
b/src/bin/ui/workspace/groupedit_calc.c
index d7d765b..c12dd7d 100644
--- a/src/bin/ui/workspace/groupedit_calc.c
+++ b/src/bin/ui/workspace/groupedit_calc.c
@@ -180,7 +180,7 @@ _parts_list_find(Eina_List *parts, const char *part)
 
    EINA_LIST_FOREACH(parts, l, gp)
      {
-        if ((gp->part->name == part))
+        if (gp->part->name == part)
           return gp;
      }
    return NULL;
@@ -199,7 +199,7 @@ _part_item_search(Eina_List *items, const char *item_name)
      {
         /* we are sure that all strings are stringshare, and for compare two
          * strings enough compare they pointers */
-        if ((item->name == item_name))
+        if (item->name == item_name)
           return item;
      }
    return NULL;
diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index 4413f45..4c4dbdd 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -956,7 +956,7 @@ _mode_changed(void *data,
    /* delete all object besides groupedit, because all these objects we created
     * on mode chage. It's do for create, alwayes actual and correct object, and
     * eliminates from updates, like live_view update mehanism. So, Profit! */
-   if ((sd->active_mode == MODE_NORMAL)/* || (sd->active_mode == 
MODE_SEPARATE) */)
+   if (sd->active_mode == MODE_NORMAL/* || (sd->active_mode == MODE_SEPARATE) 
*/)
      evas_object_hide(sd->groupedit);
    else
      evas_object_del(sd->demo_object);

-- 


Reply via email to