diff options
Diffstat (limited to 'qt/common/smart-ptr/driver.cxx')
-rw-r--r-- | qt/common/smart-ptr/driver.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/common/smart-ptr/driver.cxx b/qt/common/smart-ptr/driver.cxx index 49e2ae1..b149fee 100644 --- a/qt/common/smart-ptr/driver.cxx +++ b/qt/common/smart-ptr/driver.cxx @@ -11,6 +11,7 @@ #include <iostream> #include <QtCore/QSharedPointer> +#include <QtCore/QCoreApplication> #include <odb/database.hxx> #include <odb/transaction.hxx> @@ -32,6 +33,8 @@ template class QLazyWeakPointer<cont>; int main (int argc, char* argv[]) { + QCoreApplication app (argc, argv); + try { auto_ptr<database> db (create_database (argc, argv)); |