aboutsummaryrefslogtreecommitdiff
path: root/qt/common
diff options
context:
space:
mode:
Diffstat (limited to 'qt/common')
-rw-r--r--qt/common/containers/driver.cxx4
-rw-r--r--qt/common/smart-ptr/driver.cxx3
-rw-r--r--qt/common/template/driver.cxx4
3 files changed, 11 insertions, 0 deletions
diff --git a/qt/common/containers/driver.cxx b/qt/common/containers/driver.cxx
index 6010571..e285448 100644
--- a/qt/common/containers/driver.cxx
+++ b/qt/common/containers/driver.cxx
@@ -10,6 +10,8 @@
#include <cassert>
#include <iostream>
+#include <QtCore/QCoreApplication>
+
#include <odb/database.hxx>
#include <odb/transaction.hxx>
@@ -24,6 +26,8 @@ using namespace odb::core;
int
main (int argc, char* argv[])
{
+ QCoreApplication app (argc, argv);
+
try
{
auto_ptr<database> db (create_database (argc, argv));
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));
diff --git a/qt/common/template/driver.cxx b/qt/common/template/driver.cxx
index 7822aab..ca37c05 100644
--- a/qt/common/template/driver.cxx
+++ b/qt/common/template/driver.cxx
@@ -10,6 +10,8 @@
#include <cassert>
#include <iostream>
+#include <QtCore/QCoreApplication>
+
#include <odb/database.hxx>
#include <odb/transaction.hxx>
@@ -24,6 +26,8 @@ using namespace odb::core;
int
main (int argc, char* argv[])
{
+ QCoreApplication app (argc, argv);
+
try
{
auto_ptr<database> db (create_database (argc, argv));