summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qproperty.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-10-11 10:31:10 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-10-12 13:01:44 +0200
commitf2f5e962b6c9e9b146bb4cf24fa93f7207884dca (patch)
tree3bc16e2daf8e1d439da2d262d84e5e1e6cb9c983 /src/corelib/kernel/qproperty.cpp
parent901b2975dd714617f20ec13a66aeac8c5a6638fa (diff)
QUntypedPropertyBinding::QUntypedPropertyBinding: use member initializer list
No need to default initialize the std::function and source location. Change-Id: I7d840376b16e7257386a4787dd06b7956fe37576 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qproperty.cpp')
-rw-r--r--src/corelib/kernel/qproperty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp
index d25952c0bf..c742e2194a 100644
--- a/src/corelib/kernel/qproperty.cpp
+++ b/src/corelib/kernel/qproperty.cpp
@@ -142,8 +142,8 @@ QUntypedPropertyBinding::QUntypedPropertyBinding() = default;
QUntypedPropertyBinding::QUntypedPropertyBinding(QMetaType metaType, QUntypedPropertyBinding::BindingEvaluationFunction function,
const QPropertyBindingSourceLocation &location)
+ : d(new QPropertyBindingPrivate(metaType, std::move(function), std::move(location)))
{
- d = new QPropertyBindingPrivate(metaType, std::move(function), std::move(location));
}
QUntypedPropertyBinding::QUntypedPropertyBinding(QUntypedPropertyBinding &&other)