Monotone-Parent: 8a9b77b9c41a41491783c3507d9b85c3555500a3

Monotone-Revision: 7b44f54acaa78763162cefc160fada0303ee1d95

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-08-05T01:53:01
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2008-08-05 01:53:01 +00:00
parent 46bd0d063a
commit 7152b0e075
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2008-08-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoCalendarComponent.m
([SOGoCalendarComponent -calendar:create:secure]): we now return a
deep copy of the current calendar element, so that further
modifications do not impact the original copy.
* SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): same as
below.

View File

@ -328,7 +328,7 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
{
NSString *componentTag;
iCalRepeatableEntityObject *newComponent;
iCalCalendar **calendar;
iCalCalendar **calendar, *returnedCopy;
NSString *iCalString;
if (secure)
@ -365,7 +365,10 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
}
}
return *calendar;
returnedCopy = [*calendar mutableCopy];
[returnedCopy autorelease];
return returnedCopy;
}
- (id) component: (BOOL) create secure: (BOOL) secure