mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
f4dff61e12
commit
101fbead74
3 changed files with 5 additions and 4 deletions
|
@ -245,7 +245,7 @@ NSHashTable *
|
|||
NSCreateHashTable(NSHashTableCallBacks callBacks,
|
||||
unsigned int capacity)
|
||||
{
|
||||
return NSCreateHashTableWithZone(callBacks, capacity, 0);
|
||||
return NSCreateHashTableWithZone(callBacks, capacity, NSDefaultMallocZone());
|
||||
}
|
||||
|
||||
/** Copying **/
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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... **/
|
||||
|
|
Loading…
Reference in a new issue