Do not shadow variables

This commit is contained in:
Pavel Janík
2016-09-02 18:19:01 +02:00
parent 2f71490d21
commit 4731cab8fb
15 changed files with 89 additions and 89 deletions

View File

@@ -13,9 +13,9 @@ class reverse_lock
{
public:
explicit reverse_lock(Lock& lock) : lock(lock) {
lock.unlock();
lock.swap(templock);
explicit reverse_lock(Lock& _lock) : lock(_lock) {
_lock.unlock();
_lock.swap(templock);
}
~reverse_lock() {