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.cpp | |
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.cpp')
-rw-r--r-- | src/corelib/kernel/qproperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp index cbb2954a98..926ccdd8de 100644 --- a/src/corelib/kernel/qproperty.cpp +++ b/src/corelib/kernel/qproperty.cpp @@ -150,7 +150,7 @@ bool QPropertyBindingPrivate::evaluateIfDirtyAndReturnTrueIfValueChanged() QUntypedPropertyBinding::QUntypedPropertyBinding() = default; -QUntypedPropertyBinding::QUntypedPropertyBinding(const QMetaType &metaType, QUntypedPropertyBinding::BindingEvaluationFunction function, +QUntypedPropertyBinding::QUntypedPropertyBinding(QMetaType metaType, QUntypedPropertyBinding::BindingEvaluationFunction function, const QPropertyBindingSourceLocation &location) { d = new QPropertyBindingPrivate(metaType, std::move(function), std::move(location)); |