mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Tidyup for GC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65b8d0067c
commit
eb1c061d9b
30 changed files with 137 additions and 111 deletions
|
@ -1143,7 +1143,7 @@ static NSString *indentStrings[] = {
|
|||
id b = [self objectAtIndex: d];
|
||||
if ((*compare)(a, b, context) == NSOrderedAscending)
|
||||
{
|
||||
RETAIN(a);
|
||||
IF_NO_GC(RETAIN(a));
|
||||
[self replaceObjectAtIndex: d + stride withObject: b];
|
||||
[self replaceObjectAtIndex: d withObject: a];
|
||||
RELEASE(a);
|
||||
|
@ -1175,7 +1175,7 @@ static NSString *indentStrings[] = {
|
|||
{
|
||||
[super init];
|
||||
array = anArray;
|
||||
RETAIN(array);
|
||||
IF_NO_GC(RETAIN(array));
|
||||
pos = 0;
|
||||
get = [array methodForSelector: oaiSel];
|
||||
cnt = (unsigned (*)(NSArray*, SEL))[array methodForSelector: countSel];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue