aboutsummaryrefslogtreecommitdiff
path: root/qt/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'qt/mysql')
-rw-r--r--qt/mysql/basic/driver.cxx4
-rw-r--r--qt/mysql/date-time/driver.cxx3
-rw-r--r--qt/mysql/template/driver.cxx4
3 files changed, 11 insertions, 0 deletions
diff --git a/qt/mysql/basic/driver.cxx b/qt/mysql/basic/driver.cxx
index ed3165e..d2eebd6 100644
--- a/qt/mysql/basic/driver.cxx
+++ b/qt/mysql/basic/driver.cxx
@@ -10,6 +10,8 @@
#include <cassert>
#include <iostream>
+#include <QtCore/QCoreApplication>
+
#include <odb/mysql/database.hxx>
#include <odb/mysql/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/mysql/date-time/driver.cxx b/qt/mysql/date-time/driver.cxx
index a6637bb..34eea5d 100644
--- a/qt/mysql/date-time/driver.cxx
+++ b/qt/mysql/date-time/driver.cxx
@@ -11,6 +11,7 @@
#include <iostream>
#include <QtCore/QDateTime>
+#include <QtCore/QCoreApplication>
#include <odb/mysql/database.hxx>
#include <odb/mysql/transaction.hxx>
@@ -29,6 +30,8 @@ test_out_of_range_value (object&, database&);
int
main (int argc, char* argv[])
{
+ QCoreApplication app (argc, argv);
+
try
{
auto_ptr<database> db (create_database (argc, argv));
diff --git a/qt/mysql/template/driver.cxx b/qt/mysql/template/driver.cxx
index c94096b..bd12e22 100644
--- a/qt/mysql/template/driver.cxx
+++ b/qt/mysql/template/driver.cxx
@@ -10,6 +10,8 @@
#include <cassert>
#include <iostream>
+#include <QtCore/QCoreApplication>
+
#include <odb/mysql/database.hxx>
#include <odb/mysql/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));