mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
([LinkedList -prependObject:]): Fix return type.
([LinkedList -insertObject:atIndex:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1060 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d37b1c5572
commit
224b9099b9
1 changed files with 2 additions and 3 deletions
|
@ -240,7 +240,7 @@
|
|||
[self insertObject: newObject after: _last_link];
|
||||
}
|
||||
|
||||
- prependObject: newObject
|
||||
- (void) prependObject: newObject
|
||||
{
|
||||
/* Make sure no one else already owns the newObject. */
|
||||
assert ([newObject linkedList] == NO_OBJECT);
|
||||
|
@ -263,7 +263,7 @@
|
|||
[self insertObject: newObject before: _first_link];
|
||||
}
|
||||
|
||||
- insertObject: newObject atIndex: (unsigned)index
|
||||
- (void) insertObject: newObject atIndex: (unsigned)index
|
||||
{
|
||||
CHECK_INDEX_RANGE_ERROR(index, (_count+1));
|
||||
|
||||
|
@ -288,7 +288,6 @@
|
|||
[self insertObject: newObject after: _last_link];
|
||||
else
|
||||
[self insertObject:newObject before: [self objectAtIndex: index]];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) removeObjectAtIndex: (unsigned)index
|
||||
|
|
Loading…
Reference in a new issue