diff options
Diffstat (limited to 'src/svnqt/cache/LogCache.cpp')
-rw-r--r-- | src/svnqt/cache/LogCache.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/svnqt/cache/LogCache.cpp b/src/svnqt/cache/LogCache.cpp index d1f5aaa..a3cb590 100644 --- a/src/svnqt/cache/LogCache.cpp +++ b/src/svnqt/cache/LogCache.cpp @@ -10,10 +10,9 @@ #include "svnqt/cache/DatabaseException.hpp" #ifndef NO_SQLITE3 -#include "sqlite3/qsql_sqlite3.h" -#define SQLTYPE "QSQLITE3" +#define SQLTYPE "TQSQLITE3" #else -#define SQLTYPE "QSQLITE" +#define SQLTYPE "TQSQLITE" #endif #define SQLMAIN "logmain-logcache" @@ -262,11 +261,6 @@ void LogCache::setupCachePath() void LogCache::setupMainDb() { -#ifndef NO_SQLITE3 - if (!TQSqlDatabase::isDriverAvailable(SQLTYPE)) { - TQSqlDatabase::registerSqlDriver(SQLTYPE,new TQSqlDriverCreator<TQSQLite3Driver>); - } -#endif TQDataBase mainDB = m_CacheData->getMainDB(); if (!mainDB || !mainDB->open()) { tqWarning("Failed to open main database: %s", (mainDB?mainDB->lastError().text().TOUTF8().data():"No database object.")); |