mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
rbtree: Add assertions to clarify usage
This commit is contained in:
parent
69a516018f
commit
6168a64713
@ -472,6 +472,7 @@ _gtk_rbtree_insert_after (GtkRBTree *tree,
|
||||
}
|
||||
else
|
||||
{
|
||||
g_assert (tree->root == tree->nil);
|
||||
tree->root = node;
|
||||
tmp_node = tree->parent_node;
|
||||
tmp_tree = tree->parent_tree;
|
||||
@ -558,6 +559,7 @@ _gtk_rbtree_insert_before (GtkRBTree *tree,
|
||||
}
|
||||
else
|
||||
{
|
||||
g_assert (tree->root == tree->nil);
|
||||
tree->root = node;
|
||||
tmp_node = tree->parent_node;
|
||||
tmp_tree = tree->parent_tree;
|
||||
|
Loading…
Reference in New Issue
Block a user