mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([NSObject +initialize]): Use NSNonOwnedPointerOrNullMapKeyCallBacks,
not NSNonRetainedObjectsMapKeyCallBacks; keying on addresses, and avoiding a call to -isEqual is better. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1258 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
18c9f78a91
commit
5cdc044b70
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ BOOL NSDecrementExtraRefCountWasZero (id anObject)
|
|||
{
|
||||
if (self == [NSObject class])
|
||||
{
|
||||
retain_counts = NSCreateMapTable (NSNonRetainedObjectMapKeyCallBacks,
|
||||
retain_counts = NSCreateMapTable (NSNonOwnedPointerOrNullMapKeyCallBacks,
|
||||
NSIntMapValueCallBacks, 64);
|
||||
autorelease_class = [NSAutoreleasePool class];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue