diff options
| author | Max Horn | 2007-03-04 09:27:28 +0000 | 
|---|---|---|
| committer | Max Horn | 2007-03-04 09:27:28 +0000 | 
| commit | b25c7933a5dff6a63f595d136fcbec9fbe195af2 (patch) | |
| tree | ff0a29fa01d6f61ceaadc7f4003896167844a36f | |
| parent | 8e7b556e997ebe1874589003a971eff7579e496e (diff) | |
| download | scummvm-rg350-b25c7933a5dff6a63f595d136fcbec9fbe195af2.tar.gz scummvm-rg350-b25c7933a5dff6a63f595d136fcbec9fbe195af2.tar.bz2 scummvm-rg350-b25c7933a5dff6a63f595d136fcbec9fbe195af2.zip  | |
Paranoia: a hashmap node must never ever change its key after its creation
svn-id: r25965
| -rw-r--r-- | common/hashmap.h | 3 | 
1 files changed, 1 insertions, 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<Key, Val, HashFunc, EqualFunc> HM_t;  	struct Node { -		Key _key; +		const Key _key;  		Val _value; -		Node() {}  		Node(const Key &key) : _key(key) {}  	};  | 
