From c43565dd398b2233db8eb49ba05234d62fb42e03 Mon Sep 17 00:00:00 2001 From: costan Date: Mon, 17 Sep 2018 23:05:57 -0700 Subject: [PATCH] C++11 cleanup for util/mutexlock.h. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=213398583 --- util/mutexlock.h | 6 +++--- 1 file 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