summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-20 21:47:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-20 21:47:53 +0900
commitc048ce6e8cc109b317293d380a5053e19a37dd31 (patch)
tree48aec6b3314b880d050fb9d243b3b50b4c6fc658 /src/sql
parent789e7c7f92e09fb31549a5126281331b86834008 (diff)
downloadtqt3-c048ce6e8cc109b317293d380a5053e19a37dd31.tar.gz
tqt3-c048ce6e8cc109b317293d380a5053e19a37dd31.zip
Removed obsolete Qt2's TQVector class and replaced
with TQt3's TQPtrVector. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/drivers/sqlite/qsql_sqlite.cpp17
-rw-r--r--src/sql/drivers/sqlite3/qsql_sqlite3.cpp14
2 files changed, 7 insertions, 24 deletions
diff --git a/src/sql/drivers/sqlite/qsql_sqlite.cpp b/src/sql/drivers/sqlite/qsql_sqlite.cpp
index 92a66c72..b7b7aa5e 100644
--- a/src/sql/drivers/sqlite/qsql_sqlite.cpp
+++ b/src/sql/drivers/sqlite/qsql_sqlite.cpp
@@ -17,20 +17,11 @@
#include <ntqdatetime.h>
#include <ntqregexp.h>
#include <ntqfile.h>
-
-#if (TQT_VERSION-0 < 0x030000)
-# include <ntqvector.h>
-# if !defined Q_WS_WIN32
-# include <unistd.h>
-# endif
-# include "../../../3rdparty/libraries/sqlite/sqlite.h"
-#else
-# include <ntqptrvector.h>
-# if !defined Q_WS_WIN32
-# include <unistd.h>
-# endif
-# include <sqlite.h>
+#include <ntqptrvector.h>
+#if !defined Q_WS_WIN32
+# include <unistd.h>
#endif
+#include <sqlite.h>
typedef struct sqlite_vm sqlite_vm;
diff --git a/src/sql/drivers/sqlite3/qsql_sqlite3.cpp b/src/sql/drivers/sqlite3/qsql_sqlite3.cpp
index 4d79cb4e..a0d9ac55 100644
--- a/src/sql/drivers/sqlite3/qsql_sqlite3.cpp
+++ b/src/sql/drivers/sqlite3/qsql_sqlite3.cpp
@@ -19,17 +19,9 @@
#include <ntqregexp.h>
#include <ntqfile.h>
#include <sqlite3.h>
-
-#if (TQT_VERSION-0 < 0x030200)
-# include <ntqvector.h>
-# if !defined Q_WS_WIN32
-# include <unistd.h>
-# endif
-#else
-# include <ntqptrvector.h>
-# if !defined Q_WS_WIN32
-# include <unistd.h>
-# endif
+#include <ntqptrvector.h>
+#if !defined Q_WS_WIN32
+# include <unistd.h>
#endif
typedef struct sqlite3_stmt sqlite3_stmt;