diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-01 13:47:39 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-01 13:47:39 +0000 |
commit | b4fef872bdb00afec096a716cfe05f2c3d600850 (patch) | |
tree | 37bbef4fe6eccc15903798876bed7c6c29d87ee5 /base/lock.h | |
parent | 34cae7d761a5c38cccaadc32b9c1fed41d871c66 (diff) | |
download | chromium_src-b4fef872bdb00afec096a716cfe05f2c3d600850.zip chromium_src-b4fef872bdb00afec096a716cfe05f2c3d600850.tar.gz chromium_src-b4fef872bdb00afec096a716cfe05f2c3d600850.tar.bz2 |
Some small cleanups to Lock suggested by Gaetano Mendola.
Review URL: http://codereview.chromium.org/6037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2754 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/lock.h')
-rw-r--r-- | base/lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/lock.h b/base/lock.h index ee22fa6..4e736af 100644 --- a/base/lock.h +++ b/base/lock.h @@ -55,7 +55,7 @@ class Lock { // A helper class that acquires the given Lock while the AutoLock is in scope. class AutoLock { public: - AutoLock(Lock& lock) : lock_(lock) { + explicit AutoLock(Lock& lock) : lock_(lock) { lock_.Acquire(); } |