diff options
-rw-r--r-- | src/corelib/kernel/qproperty.h | 4 | ||||
-rw-r--r-- | src/corelib/kernel/qpropertybinding.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index 45acfadd50..60e4193827 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -122,7 +122,7 @@ public: // already has. using BindingEvaluationFunction = std::function<BindingEvaluationResult(int version, void *propertyStoragePtr)>; - QUntypedPropertyBinding() = default; + QUntypedPropertyBinding(); QUntypedPropertyBinding(BindingEvaluationFunction function, const QPropertyBindingSourceLocation &location); QUntypedPropertyBinding(QUntypedPropertyBinding &&other); QUntypedPropertyBinding(const QUntypedPropertyBinding &other); @@ -337,7 +337,7 @@ private: Q_DISABLE_COPY(QProperty) friend struct QPropertyBasePointer; - friend struct QPropertyBinding<T>; + friend class QPropertyBinding<T>; friend struct QPropertyObserver; // Mutable because querying for the value may require evalating the binding expression, calling // non-const functions on QPropertyBase. diff --git a/src/corelib/kernel/qpropertybinding.cpp b/src/corelib/kernel/qpropertybinding.cpp index 23f7075998..8acaaeee72 100644 --- a/src/corelib/kernel/qpropertybinding.cpp +++ b/src/corelib/kernel/qpropertybinding.cpp @@ -89,6 +89,8 @@ bool QPropertyBindingPrivate::evaluateIfDirtyAndReturnTrueIfValueChanged() return changed; } +QUntypedPropertyBinding::QUntypedPropertyBinding() = default; + QUntypedPropertyBinding::QUntypedPropertyBinding(QUntypedPropertyBinding::BindingEvaluationFunction function, const QPropertyBindingSourceLocation &location) { |