[calls] call-window: Use g_assert in private functions



commit cead5ada88aef46f2437212b8c0df825e0df71c7
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Tue Dec 14 14:57:14 2021 +0100

    call-window: Use g_assert in private functions

 src/calls-call-window.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/calls-call-window.c b/src/calls-call-window.c
index 57bc6cb8..4f68fafa 100644
--- a/src/calls-call-window.c
+++ b/src/calls-call-window.c
@@ -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++) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]