From 36c1ba88a5782ec8961250d1fe977002b49e9331 Mon Sep 17 00:00:00 2001 From: Euan Thoms Date: Wed, 4 Nov 2015 05:28:03 +0800 Subject: [PATCH] Stage 5 of clang compiler warning patches. --- SoObjects/Appointments/SOGoAppointmentObject.m | 16 ++++++++++------ Tools/SOGoToolRestore.m | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index e807b6bee..9a6645102 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -46,6 +46,7 @@ #import #import #import +#import #import #import @@ -748,11 +749,14 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent { e = [events objectAtIndex: i]; if ([e recurrenceId]) - for (j = 0; j < [theAttendees count]; j++) - if (shouldAdd) + for (j = 0; j < [theAttendees count]; j++) { + if (shouldAdd) { [e addToAttendees: [theAttendees objectAtIndex: j]]; - else + } + else { [e removeFromAttendees: [theAttendees objectAtIndex: j]]; + } + } } } @@ -1038,7 +1042,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent if ([delegateEmail length]) otherDelegate = [event findAttendeeWithEmail: delegateEmail]; else - otherDelegate = NO; + otherDelegate = nil; /* we handle the addition/deletion of delegate users */ addDelegate = NO; @@ -1076,7 +1080,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent if ([delegateEmail length]) otherDelegate = [event findAttendeeWithEmail: delegateEmail]; else - otherDelegate = NO; + otherDelegate = nil; } } if (addDelegate) @@ -1233,7 +1237,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent if ([delegateEmail length]) otherDelegate = [event findAttendeeWithEmail: delegateEmail]; else - otherDelegate = NO; + otherDelegate = nil; } [self sendEMailUsingTemplateNamed: @"Deletion" diff --git a/Tools/SOGoToolRestore.m b/Tools/SOGoToolRestore.m index 712c680ba..5f1527cc8 100644 --- a/Tools/SOGoToolRestore.m +++ b/Tools/SOGoToolRestore.m @@ -574,6 +574,7 @@ NSLog (@" %@ (%@)", folderKey, [currentFolder objectForKey: @"displayname"]); } + rc = YES; } else {