mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-26 05:45:24 +00:00
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:
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user