[gtk+] Don't compare booleans



commit 54e3711c390716e7df96c16ef6b0a81858fe99f5
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 9 00:22:56 2014 -0500

    Don't compare booleans
    
    Just use negation.

 gtk/gtktreemodel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c
index 362e339..3906562 100644
--- a/gtk/gtktreemodel.c
+++ b/gtk/gtktreemodel.c
@@ -2014,7 +2014,7 @@ gtk_tree_model_foreach (GtkTreeModel            *model,
   g_return_if_fail (func != NULL);
 
   path = gtk_tree_path_new_first ();
-  if (gtk_tree_model_get_iter (model, &iter, path) == FALSE)
+  if (!gtk_tree_model_get_iter (model, &iter, path))
     {
       gtk_tree_path_free (path);
       return;


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