Author: [email protected]
Date: Fri May 15 01:33:38 2009
New Revision: 1961
Modified:
branches/bleeding_edge/test/cctest/test-hashmap.cc
Log:
Fix lint errors in test-hashmap.cc
Modified: branches/bleeding_edge/test/cctest/test-hashmap.cc
==============================================================================
--- branches/bleeding_edge/test/cctest/test-hashmap.cc (original)
+++ branches/bleeding_edge/test/cctest/test-hashmap.cc Fri May 15 01:33:38
2009
@@ -43,7 +43,7 @@
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 @@
}
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 @@
}
y = y * factor + offset;
}
-
}
CHECK_EQ(0, set.occupancy());
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---