[evolution-ews] Exchange between parameters to function



commit d6315c3864e9c5266228e2099220929983c13105
Author: Shiran Stan-Meleh <shiran stan-meleh intel com>
Date:   Mon Aug 15 17:02:31 2011 +0300

    Exchange between parameters to function

 src/calendar/e-cal-backend-ews.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 171f528..d88025d 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1734,9 +1734,9 @@ convert_vevent_component_to_updatexml(ESoapMessage *msg, gpointer user_data)
 	old_value = icalcomponent_get_description (icalcomp_old);
 	if ((value && old_value && g_ascii_strcasecmp (value, old_value)) || 
 	 (value && old_value == NULL)) {
-			convert_vevent_property_to_updatexml (msg, "Body", "", "item", "BodyType", "Text");
-	} else if (!value && old_value)
 			convert_vevent_property_to_updatexml (msg, "Body", value, "item", "BodyType", "Text");
+	} else if (!value && old_value)
+			convert_vevent_property_to_updatexml (msg, "Body", "", "item", "BodyType", "Text");
 
 	/*update alarm items*/
 	has_alarms = e_cal_component_has_alarms (modify_data->comp);
@@ -1759,9 +1759,9 @@ convert_vevent_component_to_updatexml(ESoapMessage *msg, gpointer user_data)
 	old_value = icalcomponent_get_location (icalcomp_old);
 	if ((value && old_value && g_ascii_strcasecmp (value, old_value)) || 
 	 (value && old_value == NULL)) {
-			convert_vevent_property_to_updatexml (msg, "Location", "", "calendar", NULL, NULL);
-	} else if (!value && old_value)
 			convert_vevent_property_to_updatexml (msg, "Location", value, "calendar", NULL, NULL);
+	} else if (!value && old_value)
+			convert_vevent_property_to_updatexml (msg, "Location", "", "calendar", NULL, NULL);
 
 	/*freebusy*/
 	transp = icalcomponent_get_first_property (icalcomp, ICAL_TRANSP_PROPERTY);



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