Differences From Artifact [d340619ba8]:
- File src/OFList.m — part of check-in [1496808b81] at 2009-01-24 15:24:49 on branch trunk — Adjust API to introduction of OFAutoreleasePool. (user: js, size: 2687) [annotate] [blame] [check-ins using]
To Artifact [b318f43264]:
- File
src/OFList.m
— part of check-in
[7feac9e596]
at
2009-01-24 20:28:31
on branch trunk
— [self alloc] isn't a good idea with the new API.
The reason is that a derived class, for example derived from OFArray,
would not return an OFArray when + arrayWithItemSize is called. (user: js, size: 2689) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
12 13 14 15 16 17 18 | #import "config.h" #import "OFList.h" @implementation OFList + list { | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #import "config.h" #import "OFList.h" @implementation OFList + list { return [[[OFList alloc] init] autorelease]; } - init { if ((self = [super init])) { first = NULL; last = NULL; |
︙ | ︙ |