From e1a87cc04b2db7af7fc38db325977eeb1b313792 Mon Sep 17 00:00:00 2001 From: mccallum Date: Mon, 6 Jan 1997 21:35:01 +0000 Subject: [PATCH] Use NSDefaultMallocZone() instead of 0. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2003 72102866-910b-0410-8b05-ffd578937521 --- Source/NSHashTable.m | 2 +- Source/NSMapTable.m | 3 ++- Source/o_map.m | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/NSHashTable.m b/Source/NSHashTable.m index 8c1394c56..8411b6fb2 100644 --- a/Source/NSHashTable.m +++ b/Source/NSHashTable.m @@ -245,7 +245,7 @@ NSHashTable * NSCreateHashTable(NSHashTableCallBacks callBacks, unsigned int capacity) { - return NSCreateHashTableWithZone(callBacks, capacity, 0); + return NSCreateHashTableWithZone(callBacks, capacity, NSDefaultMallocZone()); } /** Copying **/ diff --git a/Source/NSMapTable.m b/Source/NSMapTable.m index 3c4efa0e6..d6be56669 100644 --- a/Source/NSMapTable.m +++ b/Source/NSMapTable.m @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include "NSCallBacks.h" @@ -360,7 +361,7 @@ NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks, unsigned int capacity) { return NSCreateMapTableWithZone(keyCallBacks, valueCallBacks, - capacity, 0); + capacity, NSDefaultMallocZone()); } NSMapTable * diff --git a/Source/o_map.m b/Source/o_map.m index f4e33eb53..7a2b5e36b 100644 --- a/Source/o_map.m +++ b/Source/o_map.m @@ -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... **/