Skip to content

Commit c43565d

Browse files
committed
C++11 cleanup for util/mutexlock.h.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=213398583
1 parent 0145a94 commit c43565d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

util/mutexlock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class SCOPED_LOCKABLE MutexLock {
2828
}
2929
~MutexLock() UNLOCK_FUNCTION() { this->mu_->Unlock(); }
3030

31+
MutexLock(const MutexLock&) = delete;
32+
MutexLock& operator=(const MutexLock&) = delete;
33+
3134
private:
3235
port::Mutex *const mu_;
33-
// No copying allowed
34-
MutexLock(const MutexLock&);
35-
void operator=(const MutexLock&);
3636
};
3737

3838
} // namespace leveldb

0 commit comments

Comments
 (0)