diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-09-20 12:05:38 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2021-09-21 04:10:25 -0700 |
commit | 8cc6c7cd6eb88b197defc3e4f73d2f5706455bd4 (patch) | |
tree | 955e34174fb90fb42faf84013514d4d6adccc7af /src/corelib/kernel | |
parent | 67b2c849923d16182529fb55c4c805ded2d01615 (diff) |
QProperty: attempt to fix compilation with GCC 10
Somehow it's not expanding properly in constexpr time.
qproperty_p.h:554:30: error: \u2018(QItemSelectionModelPrivate::modelChanged != 0)\u2019 is not a constant expression
if constexpr (Signal != nullptr) {
~~~~~~~^~~~~~~~~~
Fixes: QTBUG-96659
Change-Id: I3eb1bd30e0124f89a052fffd16a69d2eb4b45784
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qproperty_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 6fcef939f7..742ef446ca 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -551,7 +551,7 @@ public: const bool inWrapper = inBindingWrapper(storage); if (bd && !inWrapper) notify(bd); - if constexpr (Signal != nullptr) { + if constexpr (!std::is_null_pointer_v<decltype(Signal)>) { if constexpr (SignalTakesValue::value) (owner()->*Signal)(value()); else |