mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
7c234d1319
commit
c66c2eb116
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…
Add table
Add a link
Reference in a new issue