diff options
Diffstat (limited to 'qt')
-rw-r--r-- | qt/common/containers/driver.cxx | 4 | ||||
-rw-r--r-- | qt/common/smart-ptr/driver.cxx | 3 | ||||
-rw-r--r-- | qt/common/template/driver.cxx | 4 | ||||
-rw-r--r-- | qt/mysql/basic/driver.cxx | 4 | ||||
-rw-r--r-- | qt/mysql/date-time/driver.cxx | 3 | ||||
-rw-r--r-- | qt/mysql/template/driver.cxx | 4 | ||||
-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 | ||||
-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 | ||||
-rw-r--r-- | qt/sqlite/basic/driver.cxx | 4 | ||||
-rw-r--r-- | qt/sqlite/date-time/driver.cxx | 3 | ||||
-rw-r--r-- | qt/sqlite/template/driver.cxx | 4 |
15 files changed, 55 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)); 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)); 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)); 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)); diff --git a/qt/sqlite/basic/driver.cxx b/qt/sqlite/basic/driver.cxx index f24053a..c925f65 100644 --- a/qt/sqlite/basic/driver.cxx +++ b/qt/sqlite/basic/driver.cxx @@ -10,6 +10,8 @@ #include <cassert> #include <iostream> +#include <QtCore/QCoreApplication> + #include <odb/sqlite/database.hxx> #include <odb/sqlite/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/sqlite/date-time/driver.cxx b/qt/sqlite/date-time/driver.cxx index a095aa5..0ee5831 100644 --- a/qt/sqlite/date-time/driver.cxx +++ b/qt/sqlite/date-time/driver.cxx @@ -11,6 +11,7 @@ #include <iostream> #include <QtCore/QDateTime> +#include <QtCore/QCoreApplication> #include <odb/sqlite/database.hxx> #include <odb/sqlite/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/sqlite/template/driver.cxx b/qt/sqlite/template/driver.cxx index cce886a..c02cf06 100644 --- a/qt/sqlite/template/driver.cxx +++ b/qt/sqlite/template/driver.cxx @@ -10,6 +10,8 @@ #include <cassert> #include <iostream> +#include <QtCore/QCoreApplication> + #include <odb/sqlite/database.hxx> #include <odb/sqlite/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)); |