[libdazzle] tree: style cleanup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tree: style cleanup
- Date: Wed, 29 Nov 2017 07:21:39 +0000 (UTC)
commit 5d4aaf3c5dcecd9fcf200203752f2531269b7d99
Author: Christian Hergert <chergert redhat com>
Date: Tue Nov 28 23:10:26 2017 -0800
tree: style cleanup
src/tree/dzl-tree.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/tree/dzl-tree.c b/src/tree/dzl-tree.c
index 4c9e16f..858792a 100644
--- a/src/tree/dzl-tree.c
+++ b/src/tree/dzl-tree.c
@@ -527,6 +527,8 @@ _dzl_tree_insert_sorted (DzlTree *self,
gtk_tree_model_get (model, &children, 0, &sibling, -1);
+ g_assert (DZL_IS_TREE_NODE (sibling));
+
if (compare_func (sibling, child, user_data) > 0)
{
gtk_tree_store_insert_before (priv->store, &that, parent, &children);
@@ -1651,7 +1653,9 @@ _dzl_tree_get_iter (DzlTree *self,
g_return_val_if_fail (DZL_IS_TREE_NODE (node), FALSE);
g_return_val_if_fail (iter, FALSE);
- if ((path = dzl_tree_node_get_path (node)) != NULL)
+ path = dzl_tree_node_get_path (node);
+
+ if (path != NULL)
{
ret = gtk_tree_model_get_iter (GTK_TREE_MODEL (priv->store), iter, path);
gtk_tree_path_free (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]