[Scummvm-cvs-logs] SF.net SVN: scummvm: [22871] scummvm/trunk/common/hashmap.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Jun 3 15:32:58 CEST 2006
Revision: 22871
Author: fingolfin
Date: 2006-06-03 06:32:53 -0700 (Sat, 03 Jun 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22871&view=rev
Log Message:
-----------
Replaced the bogus find(const String &key) method with the proper find(const Key &key) one. Also removed the bogus find(const char *key) (which not only doesn't work correctly for non-string keys, but also usually will be *less* efficient)
Modified Paths:
--------------
scummvm/trunk/common/hashmap.h
Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h 2006-06-03 13:27:19 UTC (rev 22870)
+++ scummvm/trunk/common/hashmap.h 2006-06-03 13:32:53 UTC (rev 22871)
@@ -202,21 +202,21 @@
return const_iterator((uint)-1, this);
}
- const_iterator find(const String &key) const {
+ const_iterator find(const Key &key) const {
uint ctr = lookup(key);
if (_arr[ctr])
return const_iterator(ctr, this);
return end();
}
-
+/*
const_iterator find(const char *key) const {
uint ctr = lookup(key);
if (_arr[ctr])
return const_iterator(ctr, this);
return end();
}
+*/
-
// TODO: insert() method?
bool empty() const {
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