QProperty: make a few helpers constexpr

Change-Id: I1f3b2223530c311a7b40fd36c8162e32adbd9569
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
bb10
Fabian Kosmale 2020-10-11 09:06:49 +02:00
parent 2f3cd3b1a8
commit f912ad0a4d
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ public:
// placeholder. We only can store 4 different values, therefore those two conflate
};
QPropertyObserver() = default;
constexpr QPropertyObserver() = default;
QPropertyObserver(QPropertyObserver &&other);
QPropertyObserver &operator=(QPropertyObserver &&other);
~QPropertyObserver();

View File

@ -126,7 +126,7 @@ template <typename T, typename Tag>
class QTagPreservingPointerToPointer
{
public:
QTagPreservingPointerToPointer() = default;
constexpr QTagPreservingPointerToPointer() = default;
QTagPreservingPointerToPointer(T **ptr)
: d(reinterpret_cast<quintptr*>(ptr))