diff options
Diffstat (limited to 'examples/qml/referenceexamples/methods')
-rw-r--r-- | examples/qml/referenceexamples/methods/birthdayparty.cpp | 2 | ||||
-rw-r--r-- | examples/qml/referenceexamples/methods/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/qml/referenceexamples/methods/birthdayparty.cpp b/examples/qml/referenceexamples/methods/birthdayparty.cpp index f13c500bcf..7e750e4f4b 100644 --- a/examples/qml/referenceexamples/methods/birthdayparty.cpp +++ b/examples/qml/referenceexamples/methods/birthdayparty.cpp @@ -82,7 +82,7 @@ Person *BirthdayParty::guest(int index) const void BirthdayParty::invite(const QString &name) { - Person *person = new Person(this); + auto *person = new Person(this); person->setName(name); m_guests.append(person); } diff --git a/examples/qml/referenceexamples/methods/main.cpp b/examples/qml/referenceexamples/methods/main.cpp index 974cc26338..89404ec822 100644 --- a/examples/qml/referenceexamples/methods/main.cpp +++ b/examples/qml/referenceexamples/methods/main.cpp @@ -63,7 +63,7 @@ int main(int argc, char ** argv) QQmlEngine engine; QQmlComponent component(&engine, QUrl("qrc:example.qml")); - BirthdayParty *party = qobject_cast<BirthdayParty *>(component.create()); + auto *party = qobject_cast<BirthdayParty *>(component.create()); if (party && party->host()) { qWarning() << party->host()->name() << "is having a birthday!"; |