From b8c501b538d7f46ca5af06ce0eccbc163ff4e1ca Mon Sep 17 00:00:00 2001 From: Bruce Cowan <bruce.cowan@strath.ac.uk> Date: Sat, 11 Jan 2020 12:50:55 +0000 Subject: [PATCH] g_return_* -> g_assert --- src/rugby-list-store.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rugby-list-store.c b/src/rugby-list-store.c index 95b1f1f..b84753d 100644 --- a/src/rugby-list-store.c +++ b/src/rugby-list-store.c @@ -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) { -- GitLab