diff options
Diffstat (limited to 'src/qml/jsruntime/qv4persistent_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4persistent_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4persistent_p.h b/src/qml/jsruntime/qv4persistent_p.h index 1437736818..a0f2cb6a9d 100644 --- a/src/qml/jsruntime/qv4persistent_p.h +++ b/src/qml/jsruntime/qv4persistent_p.h @@ -104,7 +104,7 @@ public: PersistentValue &operator=(const PersistentValue &other); PersistentValue(PersistentValue &&other) noexcept : val(std::exchange(other.val, nullptr)) {} - void swap(PersistentValue &other) noexcept { qSwap(val, other.val); } + void swap(PersistentValue &other) noexcept { qt_ptr_swap(val, other.val); } QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(PersistentValue); ~PersistentValue() { PersistentValueStorage::free(val); } |