Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1868)

Unified Diff: base/containers/small_map_unittest.cc

Issue 612323010: Align base::hash_map with C++11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try a different tack for C++ insanity Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/containers/small_map_unittest.cc
diff --git a/base/containers/small_map_unittest.cc b/base/containers/small_map_unittest.cc
index bc76e370397b40053db342fa7e84000599a6b2b4..f87a8f09cbf5fcc75ffa338ba48fb549f2449f22 100644
--- a/base/containers/small_map_unittest.cc
+++ b/base/containers/small_map_unittest.cc
@@ -414,9 +414,8 @@ namespace {
class hash_map_add_item : public hash_map<int, int> {
public:
- hash_map_add_item() : hash_map<int, int>() {}
davidben 2014/10/02 22:38:50 This is to work around an incredibly annoying prob
- explicit hash_map_add_item(const std::pair<int, int>& item)
- : hash_map<int, int>() {
+ hash_map_add_item() {}
+ explicit hash_map_add_item(const std::pair<int, int>& item) {
insert(item);
}
};

Powered by Google App Engine
This is Rietveld 408576698