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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Mar 30 04:43:18 CEST 2008


Revision: 31316
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31316&view=rev
Author:   lordhoto
Date:     2008-03-29 19:43:18 -0700 (Sat, 29 Mar 2008)

Log Message:
-----------
Cleanup.

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

Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h	2008-03-30 02:39:21 UTC (rev 31315)
+++ scummvm/trunk/common/hashmap.h	2008-03-30 02:43:18 UTC (rev 31316)
@@ -102,10 +102,6 @@
 		return new Node(key);
 	} 
 
-	Node *allocNode(Node &copy) {
-		return new Node(copy);
-	}
-
 	void freeNode(Node *node) {
 		delete node;
 	}
@@ -388,7 +384,8 @@
 	_nele = 0;
 	for (uint ctr = 0; ctr < _arrsize; ++ctr) {
 		if (map._arr[ctr] != NULL) {
-			_arr[ctr] = allocNode(*map._arr[ctr]);
+			_arr[ctr] = allocNode(map._arr[ctr]->_key);
+			_arr[ctr]->_value = map._arr[ctr]->_value;
 			_nele++;
 		}
 	}


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