diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-10-19 07:15:05 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-10-19 10:53:52 +0200 |
commit | 2e81e445f254b188643626a5ba30dbb626ddc36b (patch) | |
tree | 5b8ba94be8f8e0316165fbbbb42d32ef63a9eba3 | |
parent | 378ff29b29d597fb9d4316be1da35402fefd33de (diff) |
Disable copy and move for QPropertyObserverNodeProtector
It's not intended to be copied or moved and static analysis complains.
Change-Id: I2ac2eccadb66ea572cf297f16af693b15553a1b9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/corelib/kernel/qproperty_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index dee8b47874..0e01026d54 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -97,7 +97,10 @@ struct Q_AUTOTEST_EXPORT QPropertyBindingDataPointer } }; -struct [[nodiscard]] QPropertyObserverNodeProtector { +struct [[nodiscard]] QPropertyObserverNodeProtector +{ + Q_DISABLE_COPY_MOVE(QPropertyObserverNodeProtector) + QPropertyObserverBase m_placeHolder; QPropertyObserverNodeProtector(QPropertyObserver *observer) { |