summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2006-06-09 14:21:42 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2006-06-09 14:21:42 +0000
commit5080a27a47f08916d59fb8b4a5b221c5f0b0b31d (patch)
tree8d25da673ce7845d5665b60242e5b1d844a097b2
parentc1cc4d2ff39ae80567f571a9aecdfc00edd5cb0e (diff)
downloadATCD-5080a27a47f08916d59fb8b4a5b221c5f0b0b31d.tar.gz
ChangeLogTag:Fri
-rw-r--r--ace/Hash_Map_Manager_T.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/Hash_Map_Manager_T.cpp b/ace/Hash_Map_Manager_T.cpp
index eec765cdbeb..ce1b33b33a9 100644
--- a/ace/Hash_Map_Manager_T.cpp
+++ b/ace/Hash_Map_Manager_T.cpp
@@ -119,7 +119,7 @@ ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK>::creat
template <class EXT_ID, class INT_ID, class HASH_KEY, class COMPARE_KEYS, class ACE_LOCK> int
ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK>::open (size_t size,
- ACE_Allocator *alloc,
+ ACE_Allocator *table_alloc,
ACE_Allocator *entry_alloc)
{
ACE_WRITE_GUARD_RETURN (ACE_LOCK, ace_mon, this->lock_, -1);
@@ -128,13 +128,13 @@ ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK>::open
// memory before allocating new one.
this->close_i ();
- if (alloc == 0)
- alloc = ACE_Allocator::instance ();
+ if (table_alloc == 0)
+ table_alloc = ACE_Allocator::instance ();
- this->table_allocator_ = alloc;
+ this->table_allocator_ = table_alloc;
if (entry_alloc == 0)
- entry_alloc = alloc;
+ entry_alloc = table_alloc;
this->entry_allocator_ = entry_alloc;
@@ -142,7 +142,7 @@ ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK>::open
// happen, but did with Sun C++ 4.1 (before a change to this class
// was made: it used to have an enum that was supposed to be defined
// to be ACE_DEFAULT_MAP_SIZE, but instead was defined to be 0).
- if (size != 0)
+ if (size == 0)
return -1;
return this->create_buckets (size);