mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
assign result of init to self
This commit is contained in:
parent
d17ad36c53
commit
b549e72432
1 changed files with 5 additions and 3 deletions
|
@ -495,9 +495,11 @@ static SEL objSel;
|
|||
|
||||
- (id) initWithDictionary: (NSDictionary*)d
|
||||
{
|
||||
[super init];
|
||||
dictionary = (GSDictionary*)RETAIN(d);
|
||||
enumerator = GSIMapEnumeratorForMap(&dictionary->map);
|
||||
if (nil != (self = [super init]))
|
||||
{
|
||||
dictionary = (GSDictionary*)RETAIN(d);
|
||||
enumerator = GSIMapEnumeratorForMap(&dictionary->map);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue