[Scummvm-cvs-logs] SF.net SVN: scummvm: [21427] scummvm/trunk/common/assocarray.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Fri Mar 24 06:19:43 CET 2006
Revision: 21427
Author: fingolfin
Date: 2006-03-24 06:17:47 -0800 (Fri, 24 Mar 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21427&view=rev
Log Message:
-----------
Oops, accidentally commited the wrong patch (had these lines commented out for testing)
Modified Paths:
--------------
scummvm/trunk/common/assocarray.h
Modified: scummvm/trunk/common/assocarray.h
===================================================================
--- scummvm/trunk/common/assocarray.h 2006-03-24 14:15:45 UTC (rev 21426)
+++ scummvm/trunk/common/assocarray.h 2006-03-24 14:17:47 UTC (rev 21427)
@@ -199,14 +199,14 @@
template <class Key, class Val>
inline AssocArray <Key, Val>::AssocArray(Val default_value) : _default_value(default_value) {
-// int ctr;
+ int ctr;
_arr = new aa_ref_t <Key, Val> *[INIT_SIZE];
-// for (ctr = 0; ctr < INIT_SIZE; ctr++)
-// _arr[ctr] = NULL;
+ for (ctr = 0; ctr < INIT_SIZE; ctr++)
+ _arr[ctr] = NULL;
-// assert(_arr != NULL);
+ assert(_arr != NULL);
_arrsize = INIT_SIZE;
_nele = 0;
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