diff options
Diffstat (limited to 'src/mbgl/util/uv.cpp')
-rw-r--r-- | src/mbgl/util/uv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/util/uv.cpp b/src/mbgl/util/uv.cpp index 7de960cc85..d465dfd963 100644 --- a/src/mbgl/util/uv.cpp +++ b/src/mbgl/util/uv.cpp @@ -33,11 +33,11 @@ lock::lock(const std::unique_ptr<mutex> &mtx_) : mtx(mtx_.get()) { lock::~lock() { if (mtx) { mtx->unlock(); } } -lock::lock(lock &&lock) { - std::swap(mtx, lock.mtx); +lock::lock(lock &&other) { + std::swap(mtx, other.mtx); } -lock &lock::operator=(lock &&lock) { - std::swap(mtx, lock.mtx); +lock &lock::operator=(lock &&other) { + std::swap(mtx, other.mtx); return *this; } |