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>
This commit is contained in:
Ulf Hermann 2021-10-19 07:15:05 +02:00
parent 378ff29b29
commit 2e81e445f2

View File

@ -97,7 +97,10 @@ struct Q_AUTOTEST_EXPORT QPropertyBindingDataPointer
} }
}; };
struct [[nodiscard]] QPropertyObserverNodeProtector { struct [[nodiscard]] QPropertyObserverNodeProtector
{
Q_DISABLE_COPY_MOVE(QPropertyObserverNodeProtector)
QPropertyObserverBase m_placeHolder; QPropertyObserverBase m_placeHolder;
QPropertyObserverNodeProtector(QPropertyObserver *observer) QPropertyObserverNodeProtector(QPropertyObserver *observer)
{ {