diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 376482a6afe..53e76412515 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -46,11 +46,11 @@ private: QPropertyObserver *d = nullptr; public: QBindingObserverPtr() = default; - Q_DISABLE_COPY(QBindingObserverPtr); + Q_DISABLE_COPY(QBindingObserverPtr) void swap(QBindingObserverPtr &other) noexcept { qt_ptr_swap(d, other.d); } QBindingObserverPtr(QBindingObserverPtr &&other) noexcept : d(std::exchange(other.d, nullptr)) {} - QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QBindingObserverPtr); + QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QBindingObserverPtr) inline QBindingObserverPtr(QPropertyObserver *observer) noexcept;