diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-27 17:34:10 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-24 00:19:30 +0200 |
commit | 700e6341e51f5e6f45303fab3d0a84a3eb249eba (patch) | |
tree | 0d2d876937b99e3de9d92582dff5ba56ced9f8c4 /src/corelib/kernel/qproperty_p.h | |
parent | 369cb1470d06b01934e616757ad98db2bb9ebb20 (diff) |
Pass QMetaType by value
Now that QMetaType is not refcounted anymore, we can and should
pass it by value.
Change-Id: I848db65070713762f548ca949097c27783aacad4
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qproperty_p.h')
-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 159c652657..1ddb3dd453 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -166,7 +166,7 @@ public: // public because the auto-tests access it, too. size_t dependencyObserverCount = 0; - QPropertyBindingPrivate(const QMetaType &metaType, QUntypedPropertyBinding::BindingEvaluationFunction evaluationFunction, + QPropertyBindingPrivate(QMetaType metaType, QUntypedPropertyBinding::BindingEvaluationFunction evaluationFunction, const QPropertyBindingSourceLocation &location) : isBool(metaType.id() == QMetaType::Bool) , evaluationFunction(std::move(evaluationFunction)) |