aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-06-03 13:32:53 +0000
committerMax Horn2006-06-03 13:32:53 +0000
commit5a1eaabceb96533b6ce91c133e221595f3a5fdee (patch)
treedebeb39452150fae9b6d40ef76df9d6b78b3fc80
parenta2894d9a8220414fb8a38e90a455b56507c08132 (diff)
downloadscummvm-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.h6
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?