aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-view-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-view-factory.c')
-rw-r--r--calendar/gui/calendar-view-factory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c
index 09a4ad9e4f..563803ae5d 100644
--- a/calendar/gui/calendar-view-factory.c
+++ b/calendar/gui/calendar-view-factory.c
@@ -118,8 +118,7 @@ calendar_view_factory_get_title (GalViewFactory *factory)
return _("Month View");
default:
- g_assert_not_reached ();
- return NULL;
+ g_return_val_if_reached (NULL);
}
}
@@ -147,8 +146,7 @@ calendar_view_factory_get_type_code (GalViewFactory *factory)
return "month_view";
default:
- g_assert_not_reached ();
- return NULL;
+ g_return_val_if_reached (NULL);
}
}