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

Unified Diff: base/containers/small_map_unittest.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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
« no previous file with comments | « base/callback_unittest.cc ('k') | base/debug/stack_trace_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/containers/small_map_unittest.cc
diff --git a/base/containers/small_map_unittest.cc b/base/containers/small_map_unittest.cc
index d1c86808be77bbb4b48428f251088f0913b2baf2..c90a3030041bdb8358b49dddb637b83b1214034e 100644
--- a/base/containers/small_map_unittest.cc
+++ b/base/containers/small_map_unittest.cc
@@ -424,7 +424,8 @@ namespace {
class hash_map_add_item : public hash_map<int, int> {
public:
hash_map_add_item() : hash_map<int, int>() {}
- hash_map_add_item(const std::pair<int, int>& item) : hash_map<int, int>() {
+ explicit hash_map_add_item(const std::pair<int, int>& item)
+ : hash_map<int, int>() {
insert(item);
}
};
« no previous file with comments | « base/callback_unittest.cc ('k') | base/debug/stack_trace_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698