From 5a1eaabceb96533b6ce91c133e221595f3a5fdee Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 3 Jun 2006 13:32:53 +0000 Subject: 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 --- common/hashmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/hashmap.h') 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? -- cgit v1.2.3