summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-12-09 00:22:56 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-12-11 09:22:24 -0500
commit866c9a498d23961875117fadeef14c1dfbbe6dad (patch)
tree326bd323d8cd7e781ec3d9e40151cbb2981d209e
parent87c5c662c083eb8b72af0139aff869cdb2b59462 (diff)
downloadgtk+-866c9a498d23961875117fadeef14c1dfbbe6dad.tar.gz
Don't compare booleans
Just use negation.
-rw-r--r--gtk/gtktreemodel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c
index 362e339886..39065621f7 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;