[Scummvm-cvs-logs] SF.net SVN: scummvm: [25965] scummvm/trunk/common/hashmap.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Mar 4 10:27:28 CET 2007


Revision: 25965
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25965&view=rev
Author:   fingolfin
Date:     2007-03-04 01:27:28 -0800 (Sun, 04 Mar 2007)

Log Message:
-----------
Paranoia: a hashmap node must never ever change its key after its creation

Modified Paths:
--------------
    scummvm/trunk/common/hashmap.h

Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h	2007-03-04 09:20:03 UTC (rev 25964)
+++ scummvm/trunk/common/hashmap.h	2007-03-04 09:27:28 UTC (rev 25965)
@@ -92,9 +92,8 @@
 	typedef HashMap<Key, Val, HashFunc, EqualFunc> HM_t;
 
 	struct Node {
-		Key _key;
+		const Key _key;
 		Val _value;
-		Node() {}
 		Node(const Key &key) : _key(key) {}
 	};
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list