Don't use g_slist_next in the testsuite
We generally use ->next directly.
This commit is contained in:
@ -111,7 +111,7 @@ count_toggles_at_iter (GtkTextIter *iter,
|
|||||||
else if (of_tag == tmp->data)
|
else if (of_tag == tmp->data)
|
||||||
++count;
|
++count;
|
||||||
|
|
||||||
tmp = g_slist_next (tmp);
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (tags);
|
g_slist_free (tags);
|
||||||
@ -480,7 +480,7 @@ run_tests (GtkTextBuffer *buffer)
|
|||||||
|
|
||||||
g_hash_table_insert (tag_states, tag, GINT_TO_POINTER (TRUE));
|
g_hash_table_insert (tag_states, tag, GINT_TO_POINTER (TRUE));
|
||||||
|
|
||||||
tmp = g_slist_next (tmp);
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (tags);
|
g_slist_free (tags);
|
||||||
@ -503,7 +503,7 @@ run_tests (GtkTextBuffer *buffer)
|
|||||||
|
|
||||||
g_hash_table_remove (tag_states, tag);
|
g_hash_table_remove (tag_states, tag);
|
||||||
|
|
||||||
tmp = g_slist_next (tmp);
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (tags);
|
g_slist_free (tags);
|
||||||
@ -556,7 +556,7 @@ run_tests (GtkTextBuffer *buffer)
|
|||||||
|
|
||||||
g_hash_table_insert (tag_states, tag, GINT_TO_POINTER (TRUE));
|
g_hash_table_insert (tag_states, tag, GINT_TO_POINTER (TRUE));
|
||||||
|
|
||||||
tmp = g_slist_next (tmp);
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (tags);
|
g_slist_free (tags);
|
||||||
@ -579,7 +579,7 @@ run_tests (GtkTextBuffer *buffer)
|
|||||||
|
|
||||||
g_hash_table_remove (tag_states, tag);
|
g_hash_table_remove (tag_states, tag);
|
||||||
|
|
||||||
tmp = g_slist_next (tmp);
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (tags);
|
g_slist_free (tags);
|
||||||
|
|||||||
Reference in New Issue
Block a user