diff options
author | costan <costan@google.com> | 2018-09-17 23:05:57 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2018-09-24 13:37:01 -0700 |
commit | c43565dd398b2233db8eb49ba05234d62fb42e03 (patch) | |
tree | c88bf281a2f0e8be78fafaebb35f9142e7aefbb0 | |
parent | 0145a94ab6bec48e596df499e8f6103e138a74ab (diff) | |
download | leveldb-c43565dd398b2233db8eb49ba05234d62fb42e03.tar.gz |
C++11 cleanup for util/mutexlock.h.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=213398583
-rw-r--r-- | util/mutexlock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/mutexlock.h b/util/mutexlock.h index 1ff5a9e..08d709a 100644 --- a/util/mutexlock.h +++ b/util/mutexlock.h @@ -28,11 +28,11 @@ class SCOPED_LOCKABLE MutexLock { } ~MutexLock() UNLOCK_FUNCTION() { this->mu_->Unlock(); } + MutexLock(const MutexLock&) = delete; + MutexLock& operator=(const MutexLock&) = delete; + private: port::Mutex *const mu_; - // No copying allowed - MutexLock(const MutexLock&); - void operator=(const MutexLock&); }; } // namespace leveldb |