Fix lint errors in test-hashmap.cc

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1961 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
kasperl@chromium.org 2009-05-15 08:33:38 +00:00
parent 6e5de93ad3
commit 3e0f2a1532

View File

@ -43,7 +43,7 @@ typedef uint32_t (*IntKeyHash)(uint32_t key);
class IntSet {
public:
IntSet(IntKeyHash hash) : hash_(hash), map_(DefaultMatchFun) {}
explicit IntSet(IntKeyHash hash) : hash_(hash), map_(DefaultMatchFun) {}
void Insert(int x) {
CHECK_NE(0, x); // 0 corresponds to (void*)NULL - illegal key value
@ -59,7 +59,8 @@ class IntSet {
}
bool Present(int x) {
HashMap::Entry* p = map_.Lookup(reinterpret_cast<void*>(x), hash_(x), false);
HashMap::Entry* p =
map_.Lookup(reinterpret_cast<void*>(x), hash_(x), false);
if (p != NULL) {
CHECK_EQ(reinterpret_cast<void*>(x), p->key);
}
@ -164,7 +165,6 @@ void TestSet(IntKeyHash hash, int size) {
}
y = y * factor + offset;
}
}
CHECK_EQ(0, set.occupancy());
}