summaryrefslogtreecommitdiff
path: root/tests/Map_Manager_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-07 06:08:29 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-07 06:08:29 +0000
commit2a324964d31eecae9a6bb8ae336d184ef48c0988 (patch)
treee9776fd6ff07abad96bb48aa3eafef7806097900 /tests/Map_Manager_Test.cpp
parent45d107fa502c8733988f83cd8e1634c6d56b29c6 (diff)
downloadATCD-2a324964d31eecae9a6bb8ae336d184ef48c0988.tar.gz
.
Diffstat (limited to 'tests/Map_Manager_Test.cpp')
-rw-r--r--tests/Map_Manager_Test.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/Map_Manager_Test.cpp b/tests/Map_Manager_Test.cpp
index 70dcf6cb412..5d534f52cac 100644
--- a/tests/Map_Manager_Test.cpp
+++ b/tests/Map_Manager_Test.cpp
@@ -58,10 +58,14 @@ test_active_map_manager (size_t table_size,
TYPE j;
ssize_t k;
- ACTIVE_MAP_MANAGER::key_type *active_keys
- = new ACTIVE_MAP_MANAGER::key_type[iterations];
+ ACTIVE_MAP_MANAGER::key_type *active_keys;
- for (i = 0; i < iterations; i++)
+ ACE_NEW (active_keys,
+ ACTIVE_MAP_MANAGER::key_type[iterations]);
+
+ for (i = 0;
+ i < iterations;
+ i++)
ACE_ASSERT (map.bind (i, active_keys[i]) != -1);
if (test_iterators)
@@ -70,6 +74,7 @@ test_active_map_manager (size_t table_size,
i = 0;
ACTIVE_MAP_MANAGER::iterator end = map.end ();
+
for (ACTIVE_MAP_MANAGER::iterator iter = map.begin ();
iter != end;
++iter)