From 331c106bdbf12c6925c2c40f3813b71c65caf9a2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 12 Aug 2020 11:33:13 +0200 Subject: Remove the special handling of QProperty Since we will be storing property data differently in most cases, having this special case would create too many additional complications. Change-Id: I27042b0730559bb375d8e3c07324398403a9885d Reviewed-by: Volker Hilsheimer Reviewed-by: Fabian Kosmale --- src/corelib/kernel/qpropertyprivate.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/corelib/kernel/qpropertyprivate.h') diff --git a/src/corelib/kernel/qpropertyprivate.h b/src/corelib/kernel/qpropertyprivate.h index 4d8a457e32..fe6895d953 100644 --- a/src/corelib/kernel/qpropertyprivate.h +++ b/src/corelib/kernel/qpropertyprivate.h @@ -157,28 +157,6 @@ public: } }; -template<> -struct QPropertyValueStorage -{ - QPropertyBase priv; - - QPropertyValueStorage() = default; - Q_DISABLE_COPY(QPropertyValueStorage) - explicit QPropertyValueStorage(bool initialValue) { priv.setExtraBit(initialValue); } - QPropertyValueStorage &operator=(bool newValue) { priv.setExtraBit(newValue); return *this; } - QPropertyValueStorage(QPropertyValueStorage &&other) : priv(std::move(other.priv), this) {} - QPropertyValueStorage &operator=(QPropertyValueStorage &&other) { priv.moveAssign(std::move(other.priv), this); return *this; } - - bool getValue() const { return priv.extraBit(); } - bool setValueAndReturnTrueIfChanged(bool v) - { - if (v == priv.extraBit()) - return false; - priv.setExtraBit(v); - return true; - } -}; - template class QTagPreservingPointerToPointer { -- cgit v1.2.3