1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

call-window: Use g_assert in private functions

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-12-14 14:57:14 +01:00
parent a0942034de
commit cead5ada88

View file

@ -139,7 +139,7 @@ new_call_submitted_cb (CallsCallWindow *self,
const gchar *id,
CallsNewCallBox *new_call_box)
{
g_return_if_fail (CALLS_IS_CALL_WINDOW (self));
g_assert (CALLS_IS_CALL_WINDOW (self));
calls_origin_dial (origin, id);
}
@ -183,8 +183,8 @@ add_call (CallsCallWindow *self,
CuiCallDisplay *display;
CallsCallSelectorItem *item;
g_return_if_fail (CALLS_IS_CALL_WINDOW (self));
g_return_if_fail (CALLS_IS_CALL (call));
g_assert (CALLS_IS_CALL_WINDOW (self));
g_assert (CALLS_IS_CALL (call));
call_data = calls_ui_call_data_new (call);
display = cui_call_display_new (CUI_CALL (call_data));
@ -223,8 +223,8 @@ remove_call (CallsCallWindow *self,
{
guint n_calls;
g_return_if_fail (CALLS_IS_CALL_WINDOW (self));
g_return_if_fail (CALLS_IS_CALL (call));
g_assert (CALLS_IS_CALL_WINDOW (self));
g_assert (CALLS_IS_CALL (call));
n_calls = g_list_model_get_n_items (G_LIST_MODEL (self->calls));
for (guint i = 0; i < n_calls; i++) {