diff options
Diffstat (limited to 'qt/oracle')
-rw-r--r-- | qt/oracle/basic/driver.cxx | 4 | ||||
-rw-r--r-- | qt/oracle/date-time/driver.cxx | 3 | ||||
-rw-r--r-- | qt/oracle/template/driver.cxx | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/qt/oracle/basic/driver.cxx b/qt/oracle/basic/driver.cxx index 908f2b4..9b37d67 100644 --- a/qt/oracle/basic/driver.cxx +++ b/qt/oracle/basic/driver.cxx @@ -11,6 +11,8 @@ #include <iostream> #include <string> +#include <QtCore/QCoreApplication> + #include <odb/oracle/database.hxx> #include <odb/oracle/transaction.hxx> @@ -25,6 +27,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/oracle/date-time/driver.cxx b/qt/oracle/date-time/driver.cxx index 82dd2fe..2d9b46d 100644 --- a/qt/oracle/date-time/driver.cxx +++ b/qt/oracle/date-time/driver.cxx @@ -11,6 +11,7 @@ #include <iostream> #include <QtCore/QDateTime> +#include <QtCore/QCoreApplication> #include <odb/oracle/database.hxx> #include <odb/oracle/transaction.hxx> @@ -26,6 +27,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/oracle/template/driver.cxx b/qt/oracle/template/driver.cxx index 88e9e74..c43e4f2 100644 --- a/qt/oracle/template/driver.cxx +++ b/qt/oracle/template/driver.cxx @@ -10,6 +10,8 @@ #include <cassert> #include <iostream> +#include <QtCore/QCoreApplication> + #include <odb/oracle/database.hxx> #include <odb/oracle/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)); |