summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2021-09-20 12:05:38 -0700
committerThiago Macieira <thiago.macieira@intel.com>2021-09-21 04:10:25 -0700
commit8cc6c7cd6eb88b197defc3e4f73d2f5706455bd4 (patch)
tree955e34174fb90fb42faf84013514d4d6adccc7af /src/corelib/kernel
parent67b2c849923d16182529fb55c4c805ded2d01615 (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.h2
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