aboutsummaryrefslogtreecommitdiff
path: root/src/reverselock.h
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-09-02 18:19:01 +0200
committerPavel Janík <Pavel@Janik.cz>2016-09-27 09:25:15 +0200
commit4731cab8fbff51a8178c85d572e2482040278616 (patch)
tree09ba06a320b4876f9318a5b9ff086e5cae9c48fe /src/reverselock.h
parent2f71490d21796594ca6f55e375558944de9db5a0 (diff)
Do not shadow variables
Diffstat (limited to 'src/reverselock.h')
-rw-r--r--src/reverselock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reverselock.h b/src/reverselock.h
index fac1ccb793..1fd8de5d80 100644
--- a/src/reverselock.h
+++ b/src/reverselock.h
@@ -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() {