mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
|
- (id) initWithDictionary: (NSDictionary*)d
|
||||||
{
|
{
|
||||||
[super init];
|
if (nil != (self = [super init]))
|
||||||
|
{
|
||||||
dictionary = (GSDictionary*)RETAIN(d);
|
dictionary = (GSDictionary*)RETAIN(d);
|
||||||
enumerator = GSIMapEnumeratorForMap(&dictionary->map);
|
enumerator = GSIMapEnumeratorForMap(&dictionary->map);
|
||||||
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue