From 73a9c52fedf25196ed17d55cd1c6b1c1c9fd991d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 19 Aug 2019 11:09:48 +0200 Subject: Reference Examples: Use initializer lists to avoid repeating type naems Change-Id: Iff0b31d9b641a55ea246235ba1d7a066592ef0c0 Reviewed-by: Simon Hausmann --- examples/qml/referenceexamples/attached/birthdayparty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/qml/referenceexamples/attached/birthdayparty.cpp') diff --git a/examples/qml/referenceexamples/attached/birthdayparty.cpp b/examples/qml/referenceexamples/attached/birthdayparty.cpp index 26aa56e86c..da0cb800fc 100644 --- a/examples/qml/referenceexamples/attached/birthdayparty.cpp +++ b/examples/qml/referenceexamples/attached/birthdayparty.cpp @@ -81,7 +81,7 @@ void BirthdayParty::setHost(Person *c) QQmlListProperty BirthdayParty::guests() { - return QQmlListProperty(this, m_guests); + return {this, m_guests}; } int BirthdayParty::guestCount() const -- cgit v1.2.3