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

Unified Diff: base/synchronization/lock_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/synchronization/condition_variable_unittest.cc ('k') | base/task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/lock_unittest.cc
diff --git a/base/synchronization/lock_unittest.cc b/base/synchronization/lock_unittest.cc
index a048f8570c2eb455ee9b9f56c39e0a7e43eeeb16..e87571d0d85b164b9afdabad93d8eddb6ba92a5a 100644
--- a/base/synchronization/lock_unittest.cc
+++ b/base/synchronization/lock_unittest.cc
@@ -16,7 +16,7 @@ namespace base {
class BasicLockTestThread : public PlatformThread::Delegate {
public:
- BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {}
+ explicit BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {}
virtual void ThreadMain() OVERRIDE {
for (int i = 0; i < 10; i++) {
@@ -91,7 +91,7 @@ TEST(LockTest, Basic) {
class TryLockTestThread : public PlatformThread::Delegate {
public:
- TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {}
+ explicit TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {}
virtual void ThreadMain() OVERRIDE {
got_lock_ = lock_->Try();
« no previous file with comments | « base/synchronization/condition_variable_unittest.cc ('k') | base/task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698