Optimize NSAutoreleasePool +new

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3275 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-11-20 13:44:59 +00:00
parent 3088258e10
commit fffedeff85
5 changed files with 18 additions and 6 deletions

View file

@ -529,7 +529,7 @@ compareIt(id o1, id o2, void* context)
NSMutableString *result;
int size;
int i;
NSAutoreleasePool *arp = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool *arp = [NSAutoreleasePool new];
NSArray *keysArray = [self allKeys];
int numKeys = [keysArray count];
NSString *plists[numKeys];
@ -610,7 +610,7 @@ compareIt(id o1, id o2, void* context)
NSMutableString *iBaseString;
NSMutableString *iSizeString;
int i;
NSAutoreleasePool *arp = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool *arp = [NSAutoreleasePool new];
NSArray *keyArray = [self allKeys];
NSMutableArray *theKeys = [NSMutableArray arrayWithArray: keyArray];
int numKeys = [theKeys count];