[gnome-calendar] view: Fix compiler warnings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] view: Fix compiler warnings
- Date: Mon, 22 Dec 2014 15:03:08 +0000 (UTC)
commit 2aeae4cd8248dc32a92f87c75dd4bb90e3fd4858
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 18 19:10:24 2014 +0100
view: Fix compiler warnings
src/gcal-view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-view.c b/src/gcal-view.c
index 91c9128..74c157b 100644
--- a/src/gcal-view.c
+++ b/src/gcal-view.c
@@ -139,7 +139,7 @@ icaltimetype*
gcal_view_get_initial_date (GcalView *view)
{
g_return_val_if_fail (GCAL_IS_VIEW (view), NULL);
- g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_initial_date);
+ g_return_val_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_initial_date, NULL);
return GCAL_VIEW_GET_INTERFACE (view)->get_initial_date (view);
}
@@ -156,7 +156,7 @@ icaltimetype*
gcal_view_get_final_date (GcalView *view)
{
g_return_val_if_fail (GCAL_IS_VIEW (view), NULL);
- g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_final_date);
+ g_return_val_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_final_date, NULL);
return GCAL_VIEW_GET_INTERFACE (view)->get_final_date (view);
}
@@ -248,7 +248,7 @@ gcal_view_get_by_uuid (GcalView *view,
const gchar *uuid)
{
g_return_val_if_fail (GCAL_IS_VIEW (view), NULL);
- g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid);
+ g_return_val_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid, NULL);
return GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid (view, uuid);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]