From 1425bb1c7574be44e7a2f1f2f45b7133f08eb44d 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 158a53f6b..6bb1b5ee2 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -45,6 +45,7 @@ #import #import #import +#import #import #import @@ -747,11 +748,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]]; + } + } } } @@ -1037,7 +1041,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; @@ -1075,7 +1079,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent if ([delegateEmail length]) otherDelegate = [event findAttendeeWithEmail: delegateEmail]; else - otherDelegate = NO; + otherDelegate = nil; } } if (addDelegate) @@ -1232,7 +1236,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 {