[evolution-data-server/pohly-gnome-2-32: 7/10] merge: libecal: catch invali



commit 48f1855ec46c6f9a344eff0687b2efbf72cf46cc
Author: Patrick Ohly <patrick ohly intel com>
Date:   Thu May 12 11:05:13 2011 +0200

    merge: libecal: catch invali

 calendar/libecal/e-cal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/calendar/libecal/e-cal.c b/calendar/libecal/e-cal.c
index 7318f2a..96a3d2e 100644
--- a/calendar/libecal/e-cal.c
+++ b/calendar/libecal/e-cal.c
@@ -3663,7 +3663,7 @@ e_cal_modify_object (ECal *ecal, icalcomponent *icalcomp, CalObjModType mod, GEr
 	case CALOBJ_MOD_ALL:
 		break;
 	default:
-		e_return_error (E_CALENDAR_STATUS_INVALID_ARG);
+		e_return_error_if_fail ("valid CalObjModType" && FALSE, E_CALENDAR_STATUS_INVALID_ARG);
 	}
 	priv = ecal->priv;
 	e_return_error_if_fail (priv->gdbus_cal, E_CALENDAR_STATUS_REPOSITORY_OFFLINE);
@@ -3744,7 +3744,7 @@ e_cal_remove_object_with_mod (ECal *ecal, const gchar *uid,
 	case CALOBJ_MOD_ALL:
 		break;
 	default:
-		e_return_error (E_CALENDAR_STATUS_INVALID_ARG);
+		e_return_error_if_fail ("valid CalObjModType" && FALSE, E_CALENDAR_STATUS_INVALID_ARG);
 	}
 	priv = ecal->priv;
 	e_return_error_if_fail (priv->gdbus_cal, E_CALENDAR_STATUS_REPOSITORY_OFFLINE);



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