Monotone-Parent: d75f311111aa7cbdf9ecf2de1168ceb2651e77bd

Monotone-Revision: c15520706f33ccebb112c1becc433bfe47acd1ee

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-04-27T19:03:33
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-04-27 19:03:33 +00:00
parent 48d1736fe4
commit 63ccf073b4
2 changed files with 24 additions and 10 deletions
+5
View File
@@ -1,5 +1,10 @@
2007-04-27 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m ([SOGoObject -init]): do not invoke
initWithName:inContainer:. Instead, directly initialize the ivars
as it is supposed to be to avoid an infinite loop whenever one of
those two methods are overriden.
* SoObjects/SOGo/SOGoContentObject.m ([-rolesOfUser:login]):
removed method.
+19 -10
View File
@@ -382,19 +382,28 @@ static BOOL kontactGroupDAV = YES;
}
- (id)initWithName:(NSString *)_name inContainer:(id)_container {
if ((self = [super init])) {
context = [[WOApplication application] context];
[context retain];
nameInContainer = [_name copy];
container =
[self doesRetainContainer] ? [_container retain] : _container;
customOwner = nil;
}
if ((self = [self init]))
{
context = [[WOApplication application] context];
[context retain];
nameInContainer = [_name copy];
container =
[self doesRetainContainer] ? [_container retain] : _container;
customOwner = nil;
}
return self;
}
- (id)init {
return [self initWithName:nil inContainer:nil];
- (id) init
{
if ((self = [super init]))
{
nameInContainer = nil;
container = nil;
}
return self;
}
- (void)dealloc {