mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
3088258e10
commit
fffedeff85
5 changed files with 18 additions and 6 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue