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>
This commit is contained in:
Fabian Kosmale 2020-10-11 10:31:10 +02:00
parent 901b2975dd
commit f2f5e962b6

View File

@ -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)