diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index e6e1dec2c2a..f4c8e69c889 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -244,6 +244,7 @@ struct CurrentCompatPropertyThief Q_DISABLE_COPY_MOVE(CurrentCompatPropertyThief) QScopedValueRollback m_guard; public: + Q_NODISCARD_CTOR CurrentCompatPropertyThief(QBindingStatus *status) : m_guard(status->currentCompatProperty, nullptr) {