summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/sqlite2
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2012-01-24 22:24:34 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-25 00:55:35 +0100
commit4830b790fed26ce6b8f410c7fd068596eb81791a (patch)
treecdbfba11e2e6eaae9c40aa85b197d161d7f578ca /src/sql/drivers/sqlite2
parent7e828e365e05cdb98423f10374ea8fd2177ba3f7 (diff)
Fix a compile error in qsql_sqlite2.cpp
The compile error got introduced due to the change in QMetaType requiring fully defined types for pointers. Change-Id: I6383ff5923fc1d5bd3c1161e2823e83f2a06a99e Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/sql/drivers/sqlite2')
-rw-r--r--src/sql/drivers/sqlite2/qsql_sqlite2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sql/drivers/sqlite2/qsql_sqlite2.cpp b/src/sql/drivers/sqlite2/qsql_sqlite2.cpp
index 7841932d38..5ca31b4014 100644
--- a/src/sql/drivers/sqlite2/qsql_sqlite2.cpp
+++ b/src/sql/drivers/sqlite2/qsql_sqlite2.cpp
@@ -60,6 +60,14 @@
typedef struct sqlite_vm sqlite_vm;
+QT_BEGIN_NAMESPACE namespace QtPrivate {
+template <> struct IsPointerToTypeDerivedFromQObject<sqlite_vm*> {
+ enum { Value = false };
+};
+template <> struct IsPointerToTypeDerivedFromQObject<sqlite*> {
+ enum { Value = false };
+};
+} QT_END_NAMESPACE
Q_DECLARE_METATYPE(sqlite_vm*)
Q_DECLARE_METATYPE(sqlite*)