diff options
Diffstat (limited to 'src/corelib/thread/qorderedmutexlocker_p.h')
-rw-r--r-- | src/corelib/thread/qorderedmutexlocker_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/thread/qorderedmutexlocker_p.h b/src/corelib/thread/qorderedmutexlocker_p.h index 9a9aaefa02..309413173e 100644 --- a/src/corelib/thread/qorderedmutexlocker_p.h +++ b/src/corelib/thread/qorderedmutexlocker_p.h @@ -91,9 +91,9 @@ public: } QOrderedMutexLocker(QOrderedMutexLocker &&other) noexcept - : mtx1(std::exchange(other.mtx1, nullptr)) - , mtx2(std::exchange(other.mtx2, nullptr)) - , locked(std::exchange(other.locked, false)) + : mtx1(qExchange(other.mtx1, nullptr)) + , mtx2(qExchange(other.mtx2, nullptr)) + , locked(qExchange(other.locked, false)) {} ~QOrderedMutexLocker() |