mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Tidied to assign result of init to self
This commit is contained in:
parent
10f86fed2d
commit
d17ad36c53
1 changed files with 4 additions and 2 deletions
|
@ -989,8 +989,10 @@ static Class GSInlineArrayClass;
|
|||
|
||||
- (id) initWithArray: (GSArray*)anArray
|
||||
{
|
||||
[super initWithArray: anArray];
|
||||
pos = array->_count;
|
||||
if (nil != (self = [super initWithArray: anArray]))
|
||||
{
|
||||
pos = array->_count;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue