diff --git a/examples/tutorials/addressbook/part6/addressbook.cpp b/examples/tutorials/addressbook/part6/addressbook.cpp index 5159a419a9..c7155cc370 100644 --- a/examples/tutorials/addressbook/part6/addressbook.cpp +++ b/examples/tutorials/addressbook/part6/addressbook.cpp @@ -373,7 +373,7 @@ void AddressBook::loadFromFile() QDataStream in(&file); in.setVersion(QDataStream::Qt_4_5); - contacts.empty(); // empty existing contacts + contacts.clear(); // clear existing contacts in >> contacts; //! [loadFromFile() function part2]