summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/addressbook/part1/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/addressbook/part1/main.cpp')
-rw-r--r--examples/tutorials/addressbook/part1/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tutorials/addressbook/part1/main.cpp b/examples/tutorials/addressbook/part1/main.cpp
index 22bfd3e..9c96882 100644
--- a/examples/tutorials/addressbook/part1/main.cpp
+++ b/examples/tutorials/addressbook/part1/main.cpp
@@ -47,8 +47,8 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
- AddressBook *addressBook = new AddressBook;
- addressBook->show();
+ AddressBook addressBook;
+ addressBook.show();
return app.exec();
}