[evolution-data-server] e_cal_backend_store_put_timezone(): Remove const qualifier.



commit e91c7737292d93a0395c6b4d3aa803b3f2c4361d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jan 3 09:52:07 2013 -0500

    e_cal_backend_store_put_timezone(): Remove const qualifier.
    
    Semantics have not changed, but the const qualifier is unnecessary.
    None of the icaltimezone API uses const, not even the "get" functions.
    So to declare an icaltimezone parameter as const creates type casting
    awkwardness on our end.

 calendar/backends/http/e-cal-backend-http.c |    2 +-
 calendar/libedata-cal/e-cal-backend-store.c |    4 ++--
 calendar/libedata-cal/e-cal-backend-store.h |    6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index e06c8f2..96b327a 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -658,7 +658,7 @@ cal_backend_http_load (ECalBackendHttp *backend,
 
 			zone = icaltimezone_new ();
 			icaltimezone_set_component (zone, icalcomponent_new_clone (subcomp));
-			e_cal_backend_store_put_timezone (priv->store, (const icaltimezone *) zone);
+			e_cal_backend_store_put_timezone (priv->store, zone);
 
 			icaltimezone_free (zone, 1);
 		}
diff --git a/calendar/libedata-cal/e-cal-backend-store.c b/calendar/libedata-cal/e-cal-backend-store.c
index ec7fc44..e1b9093 100644
--- a/calendar/libedata-cal/e-cal-backend-store.c
+++ b/calendar/libedata-cal/e-cal-backend-store.c
@@ -635,7 +635,7 @@ cal_backend_store_get_timezone (ECalBackendStore *store,
 
 static gboolean
 cal_backend_store_put_timezone (ECalBackendStore *store,
-                                const icaltimezone *zone)
+                                icaltimezone *zone)
 {
 	icaltimezone *copy;
 
@@ -1148,7 +1148,7 @@ e_cal_backend_store_get_timezone (ECalBackendStore *store,
  **/
 gboolean
 e_cal_backend_store_put_timezone (ECalBackendStore *store,
-                                  const icaltimezone *zone)
+                                  icaltimezone *zone)
 {
 	ECalBackendStoreClass *class;
 
diff --git a/calendar/libedata-cal/e-cal-backend-store.h b/calendar/libedata-cal/e-cal-backend-store.h
index 320decc..978e5fe 100644
--- a/calendar/libedata-cal/e-cal-backend-store.h
+++ b/calendar/libedata-cal/e-cal-backend-store.h
@@ -89,7 +89,7 @@ struct _ECalBackendStoreClass {
 			(*get_timezone)		(ECalBackendStore *store,
 						 const gchar *tzid);
 	gboolean	(*put_timezone)		(ECalBackendStore *store,
-						 const icaltimezone *zone);
+						 icaltimezone *zone);
 	const icaltimezone *
 			(*get_default_timezone)	(ECalBackendStore *store);
 	gboolean	(*set_default_timezone)	(ECalBackendStore *store,
@@ -132,9 +132,9 @@ gboolean	e_cal_backend_store_has_component
 						 const gchar *rid);
 const icaltimezone *
 		e_cal_backend_store_get_timezone (ECalBackendStore *store,
-						 const gchar *tzid);
+						  const gchar *tzid);
 gboolean	e_cal_backend_store_put_timezone (ECalBackendStore *store,
-						 const icaltimezone *zone);
+						  icaltimezone *zone);
 const icaltimezone *
 		e_cal_backend_store_get_default_timezone
 						(ECalBackendStore *store);



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