diff options
Diffstat (limited to 'qt/pgsql')
-rw-r--r-- | qt/pgsql/basic/driver.cxx | 4 | ||||
-rw-r--r-- | qt/pgsql/date-time/driver.cxx | 3 | ||||
-rw-r--r-- | qt/pgsql/template/driver.cxx | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/qt/pgsql/basic/driver.cxx b/qt/pgsql/basic/driver.cxx index 1c89430..a2384f6 100644 --- a/qt/pgsql/basic/driver.cxx +++ b/qt/pgsql/basic/driver.cxx @@ -10,6 +10,8 @@ #include <cassert> #include <iostream> +#include <QtCore/QCoreApplication> + #include <odb/pgsql/database.hxx> #include <odb/pgsql/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/pgsql/date-time/driver.cxx b/qt/pgsql/date-time/driver.cxx index e81fcf3..fde15a6 100644 --- a/qt/pgsql/date-time/driver.cxx +++ b/qt/pgsql/date-time/driver.cxx @@ -11,6 +11,7 @@ #include <iostream> #include <QtCore/QDateTime> +#include <QtCore/QCoreApplication> #include <odb/pgsql/database.hxx> #include <odb/pgsql/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/pgsql/template/driver.cxx b/qt/pgsql/template/driver.cxx index a478c35..aae2509 100644 --- a/qt/pgsql/template/driver.cxx +++ b/qt/pgsql/template/driver.cxx @@ -10,6 +10,8 @@ #include <cassert> #include <iostream> +#include <QtCore/QCoreApplication> + #include <odb/pgsql/database.hxx> #include <odb/pgsql/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)); |