mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
56c962b4a3
commit
e1a87cc04b
3 changed files with 5 additions and 4 deletions
|
@ -245,7 +245,7 @@ NSHashTable *
|
||||||
NSCreateHashTable(NSHashTableCallBacks callBacks,
|
NSCreateHashTable(NSHashTableCallBacks callBacks,
|
||||||
unsigned int capacity)
|
unsigned int capacity)
|
||||||
{
|
{
|
||||||
return NSCreateHashTableWithZone(callBacks, capacity, 0);
|
return NSCreateHashTableWithZone(callBacks, capacity, NSDefaultMallocZone());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Copying **/
|
/** Copying **/
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <Foundation/NSString.h>
|
#include <Foundation/NSString.h>
|
||||||
#include <Foundation/NSArray.h>
|
#include <Foundation/NSArray.h>
|
||||||
#include <Foundation/NSException.h>
|
#include <Foundation/NSException.h>
|
||||||
|
#include <Foundation/NSZone.h>
|
||||||
#include <Foundation/NSMapTable.h>
|
#include <Foundation/NSMapTable.h>
|
||||||
#include <gnustep/base/o_map.h>
|
#include <gnustep/base/o_map.h>
|
||||||
#include "NSCallBacks.h"
|
#include "NSCallBacks.h"
|
||||||
|
@ -360,7 +361,7 @@ NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks,
|
||||||
unsigned int capacity)
|
unsigned int capacity)
|
||||||
{
|
{
|
||||||
return NSCreateMapTableWithZone(keyCallBacks, valueCallBacks,
|
return NSCreateMapTableWithZone(keyCallBacks, valueCallBacks,
|
||||||
capacity, 0);
|
capacity, NSDefaultMallocZone());
|
||||||
}
|
}
|
||||||
|
|
||||||
NSMapTable *
|
NSMapTable *
|
||||||
|
|
|
@ -908,7 +908,7 @@ o_map_alloc_with_zone(NSZone * zone)
|
||||||
o_map_t *
|
o_map_t *
|
||||||
o_map_alloc(void)
|
o_map_alloc(void)
|
||||||
{
|
{
|
||||||
return o_map_alloc_with_zone(0);
|
return o_map_alloc_with_zone(NSDefaultMallocZone());
|
||||||
}
|
}
|
||||||
|
|
||||||
o_map_t *
|
o_map_t *
|
||||||
|
@ -1281,7 +1281,7 @@ o_map_copy_with_zone(o_map_t *old_map, NSZone * zone)
|
||||||
o_map_t *
|
o_map_t *
|
||||||
o_map_copy(o_map_t *old_map)
|
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... **/
|
/** Describing... **/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue