oc: use activate instead of activateWithUser

100% of the times the user is the one that MAPIStoreUserContext
already has, so no need to have it as an argument.
This commit is contained in:
Jesús García Sáez
2015-07-14 16:31:28 +02:00
parent 3bf7afdfb7
commit 7d2f96e96b
6 changed files with 11 additions and 20 deletions

View File

@@ -577,7 +577,7 @@ static Class NSArrayK, MAPIStoreAppointmentWrapperK;
}
}
- (void) save: (TALLOC_CTX *) memCtx
- (void) save: (TALLOC_CTX *) memCtx
{
// iCalCalendar *vCalendar;
// NSCalendarDate *now;
@@ -634,7 +634,7 @@ static Class NSArrayK, MAPIStoreAppointmentWrapperK;
withActiveUser: activeUser
inMemCtx: memCtx];
[self _updateAttachedEvents];
[[self userContext] activateWithUser: activeUser];
[[self userContext] activate];
[sogoObject updateContentWithCalendar: calendar
fromRequest: nil];
[self updateVersions];