From b25c7933a5dff6a63f595d136fcbec9fbe195af2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 4 Mar 2007 09:27:28 +0000 Subject: Paranoia: a hashmap node must never ever change its key after its creation svn-id: r25965 --- common/hashmap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/hashmap.h b/common/hashmap.h index 23103232f7..c597197f1b 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -92,9 +92,8 @@ public: typedef HashMap HM_t; struct Node { - Key _key; + const Key _key; Val _value; - Node() {} Node(const Key &key) : _key(key) {} }; -- cgit v1.2.3