diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-01-10 23:30:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-01-11 00:20:32 +0800 |
commit | b1ed35f70d09601717e32eb5c762f79908b0bcf8 (patch) | |
tree | c4fa0b5f5d0dc7dd8cb1a2c3931fd25d97d08b41 /calendar/gui/e-meeting-store.c | |
parent | 54442be416bcdb1c3632fb9211d335f9b5cb3397 (diff) | |
download | gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar.gz gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar.bz2 gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar.lz gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar.xz gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar.zst gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'calendar/gui/e-meeting-store.c')
-rw-r--r-- | calendar/gui/e-meeting-store.c | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c index af15470938..88e4be47e1 100644 --- a/calendar/gui/e-meeting-store.c +++ b/calendar/gui/e-meeting-store.c @@ -1342,9 +1342,9 @@ static void process_free_busy_comp_get_xfb (icalproperty *ip, gchar **summary, gchar **location) -{ +{ const gchar *tmp = NULL; - + g_return_if_fail (ip != NULL); g_return_if_fail (summary != NULL && *summary == NULL); g_return_if_fail (location != NULL && *location == NULL); @@ -1354,13 +1354,15 @@ process_free_busy_comp_get_xfb (icalproperty *ip, * it will be displayed as a tooltip for the busy period. Otherwise, * nothing will happen (*summary and/or *location will be NULL) */ - - tmp = icalproperty_get_parameter_as_string (ip, E_MEETING_FREE_BUSY_XPROP_SUMMARY); - *summary = e_meeting_xfb_utf8_string_new_from_ical (tmp, - E_MEETING_FREE_BUSY_XPROP_MAXLEN); - tmp = icalproperty_get_parameter_as_string (ip, E_MEETING_FREE_BUSY_XPROP_LOCATION); - *location = e_meeting_xfb_utf8_string_new_from_ical (tmp, - E_MEETING_FREE_BUSY_XPROP_MAXLEN); + + tmp = icalproperty_get_parameter_as_string ( + ip, E_MEETING_FREE_BUSY_XPROP_SUMMARY); + *summary = e_meeting_xfb_utf8_string_new_from_ical ( + tmp, E_MEETING_FREE_BUSY_XPROP_MAXLEN); + tmp = icalproperty_get_parameter_as_string ( + ip, E_MEETING_FREE_BUSY_XPROP_LOCATION); + *location = e_meeting_xfb_utf8_string_new_from_ical ( + tmp, E_MEETING_FREE_BUSY_XPROP_MAXLEN); } static void @@ -1458,22 +1460,23 @@ process_free_busy_comp (EMeetingAttendee *attendee, * for a reference. */ process_free_busy_comp_get_xfb (ip, &summary, &location); - - e_meeting_attendee_add_busy_period (attendee, - fb.start.year, - fb.start.month, - fb.start.day, - fb.start.hour, - fb.start.minute, - fb.end.year, - fb.end.month, - fb.end.day, - fb.end.hour, - fb.end.minute, - busy_type, - summary, - location); - + + e_meeting_attendee_add_busy_period ( + attendee, + fb.start.year, + fb.start.month, + fb.start.day, + fb.start.hour, + fb.start.minute, + fb.end.year, + fb.end.month, + fb.end.day, + fb.end.hour, + fb.end.minute, + busy_type, + summary, + location); + if (summary != NULL) g_free (summary); if (location != NULL) |