diff options
author | Max Horn | 2006-06-03 13:32:53 +0000 |
---|---|---|
committer | Max Horn | 2006-06-03 13:32:53 +0000 |
commit | 5a1eaabceb96533b6ce91c133e221595f3a5fdee (patch) | |
tree | debeb39452150fae9b6d40ef76df9d6b78b3fc80 | |
parent | a2894d9a8220414fb8a38e90a455b56507c08132 (diff) | |
download | scummvm-rg350-5a1eaabceb96533b6ce91c133e221595f3a5fdee.tar.gz scummvm-rg350-5a1eaabceb96533b6ce91c133e221595f3a5fdee.tar.bz2 scummvm-rg350-5a1eaabceb96533b6ce91c133e221595f3a5fdee.zip |
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)
svn-id: r22871
-rw-r--r-- | common/hashmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/hashmap.h b/common/hashmap.h index 2627babd0e..35d715001c 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -202,20 +202,20 @@ public: 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? |