Skip to content
Snippets Groups Projects
Commit b8c501b5 authored by Bruce Cowan's avatar Bruce Cowan
Browse files

g_return_* -> g_assert

parent 01fadd9a
No related branches found
No related tags found
No related merge requests found
Pipeline #2681 passed
......@@ -121,7 +121,7 @@ rugby_list_store_get_item (GListModel *list,
{
RugbyListStore *self = RUGBY_LIST_STORE (list);
g_return_val_if_fail (position < self->items->len, NULL);
g_assert (position < self->items->len);
return g_object_ref (g_ptr_array_index (self->items, position));
}
......@@ -217,7 +217,7 @@ rugby_list_store_init (RugbyListStore *self)
int
rugby_list_store_get_score (RugbyListStore *self)
{
g_return_val_if_fail (RUGBY_IS_LIST_STORE (self), 0);
g_assert (RUGBY_IS_LIST_STORE (self));
return self->score;
}
......@@ -226,7 +226,7 @@ void
rugby_list_store_set_score (RugbyListStore *self,
int score)
{
g_return_if_fail (RUGBY_IS_LIST_STORE (self));
g_assert (RUGBY_IS_LIST_STORE (self));
if (score != self->score)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment