Use NSDefaultMallocZone() instead of 0.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2003 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-01-06 21:35:01 +00:00
parent f4dff61e12
commit 101fbead74
3 changed files with 5 additions and 4 deletions

View file

@ -245,7 +245,7 @@ NSHashTable *
NSCreateHashTable(NSHashTableCallBacks callBacks,
unsigned int capacity)
{
return NSCreateHashTableWithZone(callBacks, capacity, 0);
return NSCreateHashTableWithZone(callBacks, capacity, NSDefaultMallocZone());
}
/** Copying **/

View file

@ -28,6 +28,7 @@
#include <Foundation/NSString.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSException.h>
#include <Foundation/NSZone.h>
#include <Foundation/NSMapTable.h>
#include <gnustep/base/o_map.h>
#include "NSCallBacks.h"
@ -360,7 +361,7 @@ NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks,
unsigned int capacity)
{
return NSCreateMapTableWithZone(keyCallBacks, valueCallBacks,
capacity, 0);
capacity, NSDefaultMallocZone());
}
NSMapTable *

View file

@ -908,7 +908,7 @@ o_map_alloc_with_zone(NSZone * zone)
o_map_t *
o_map_alloc(void)
{
return o_map_alloc_with_zone(0);
return o_map_alloc_with_zone(NSDefaultMallocZone());
}
o_map_t *
@ -1281,7 +1281,7 @@ o_map_copy_with_zone(o_map_t *old_map, NSZone * zone)
o_map_t *
o_map_copy(o_map_t *old_map)
{
return o_map_copy_with_zone(old_map, 0);
return o_map_copy_with_zone(old_map, NSDefaultMallocZone());
}
/** Describing... **/