[gtk+] Fix warning: Use parentheses around '&&' within '||'



commit 8831a4490264d9ac6ecac8014a066fabd2fbdc6e
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Nov 9 06:39:34 2009 +0100

    Fix warning: Use parentheses around '&&' within '||'

 gtk/tests/object.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/tests/object.c b/gtk/tests/object.c
index e2bc63b..f0af1d3 100644
--- a/gtk/tests/object.c
+++ b/gtk/tests/object.c
@@ -224,12 +224,12 @@ object_test_property (GObject           *object,
       ignore_properties = list_ignore_properties (FALSE);
       for (i = 0; ignore_properties[i].name; i++)
         if (g_strcmp0 ("", ignore_properties[i].name) ||
-            g_type_is_a (G_OBJECT_TYPE (object), g_type_from_name (ignore_properties[i].type_name)) &&
-            strcmp (pspec->name, ignore_properties[i].name) == 0 &&
-            (MATCH_ANY_VALUE == ignore_properties[i].value ||
-             value_as_pointer (&value) == ignore_properties[i].value ||
-             (G_VALUE_HOLDS_STRING (&value) &&
-              strcmp (g_value_get_string (&value), ignore_properties[i].value) == 0)))
+            (g_type_is_a (G_OBJECT_TYPE (object), g_type_from_name (ignore_properties[i].type_name)) &&
+             strcmp (pspec->name, ignore_properties[i].name) == 0 &&
+             (MATCH_ANY_VALUE == ignore_properties[i].value ||
+              value_as_pointer (&value) == ignore_properties[i].value ||
+              (G_VALUE_HOLDS_STRING (&value) &&
+               strcmp (g_value_get_string (&value), ignore_properties[i].value) == 0))))
           break;
       /* ignore known property bugs if not testing thoroughly */
       if (ignore_properties[i].name == NULL && !g_test_thorough ())



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]