diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-19 11:09:48 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-20 08:42:01 +0200 |
commit | 73a9c52fedf25196ed17d55cd1c6b1c1c9fd991d (patch) | |
tree | d73a62a87734a8de3f5be1f3a4956afda64cfd3f /examples/qml/referenceexamples/grouped | |
parent | 6165699f656834eeca7248a3650d105f9bf97caf (diff) |
Reference Examples: Use initializer lists to avoid repeating type naems
Change-Id: Iff0b31d9b641a55ea246235ba1d7a066592ef0c0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples/qml/referenceexamples/grouped')
-rw-r--r-- | examples/qml/referenceexamples/grouped/birthdayparty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/referenceexamples/grouped/birthdayparty.cpp b/examples/qml/referenceexamples/grouped/birthdayparty.cpp index e729c42bb5..1bae55076c 100644 --- a/examples/qml/referenceexamples/grouped/birthdayparty.cpp +++ b/examples/qml/referenceexamples/grouped/birthdayparty.cpp @@ -66,7 +66,7 @@ void BirthdayParty::setHost(Person *c) QQmlListProperty<Person> BirthdayParty::guests() { - return QQmlListProperty<Person>(this, m_guests); + return {this, m_guests}; } int BirthdayParty::guestCount() const |