From f8374109ac06f8c0528dcf27f214f26c5d2aaf8d Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 2 Sep 2007 18:44:00 +0000 Subject: ** Fix for bug #471791 (Move away from asserts to g_ret*) svn path=/trunk/; revision=34156 --- calendar/gui/e-itip-control.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'calendar/gui/e-itip-control.c') diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 002b7d92bf..aac6beebcf 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -285,7 +285,7 @@ find_cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data) break; default: uid = NULL; - g_assert_not_reached (); + g_return_if_reached (); } if (uid) { @@ -844,7 +844,7 @@ write_recurrence_piece (EItipControl *itip, ECalComponent *comp, break; default: - g_assert_not_reached (); + g_return_if_reached (); } len = strlen (buffer); @@ -1257,8 +1257,7 @@ get_cancel_options (gboolean found, icalcomponent_kind kind) case ICAL_VTODO_COMPONENT: return g_strdup_printf ("%s", _("The task has been canceled, however it could not be found in your task lists")); default: - g_assert_not_reached (); - return NULL; + g_return_val_if_reached (NULL); } } @@ -1612,7 +1611,7 @@ show_current (EItipControl *itip) trigger.u.rel_duration.days = interval; break; default: - g_assert_not_reached (); + g_return_if_reached (); } e_cal_component_alarm_set_trigger (acomp, trigger); @@ -2541,7 +2540,7 @@ ok_clicked_cb (GtkWidget *widget, gpointer data) if (priv->my_address == NULL) find_my_address (itip, priv->ical_comp, NULL); - g_assert (priv->my_address != NULL); + g_return_if_fail (priv->my_address != NULL); ical_comp = e_cal_component_get_icalcomponent (comp); -- cgit v1.2.3