diff options
Diffstat (limited to 'src/svnqt/cache/LogCache.cpp')
-rw-r--r-- | src/svnqt/cache/LogCache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/svnqt/cache/LogCache.cpp b/src/svnqt/cache/LogCache.cpp index 2b3e322..e05ad04 100644 --- a/src/svnqt/cache/LogCache.cpp +++ b/src/svnqt/cache/LogCache.cpp @@ -187,7 +187,7 @@ public: TQDataBase db = TQSqlDatabase::addDatabase(SQLTYPE,_key); db->setDatabaseName(m_BasePath+"/maindb.db"); if (!db->open()) { - qWarning(TQString("Failed to open main database: " + db->lastError().text()).ascii()); + qWarning("%s", TQString("Failed to open main database: " + db->lastError().text()).ascii()); } else { m_mainDB.setLocalData(new ThreadDBStore); m_mainDB.localData()->key = _key; @@ -269,12 +269,12 @@ void LogCache::setupMainDb() #endif TQDataBase mainDB = m_CacheData->getMainDB(); if (!mainDB || !mainDB->open()) { - qWarning(TQString("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")).ascii()); + qWarning("%s", TQString("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")).ascii()); } else { TQSqlQuery q(TQString(), mainDB); mainDB->transaction(); if (!q.exec("CREATE TABLE IF NOT EXISTS \""+TQString(SQLMAINTABLE)+"\" (\"reposroot\" TEXT,\"id\" INTEGER PRIMARY KEY NOT NULL);")) { - qWarning(TQString("Failed create main database: " + mainDB->lastError().text()).ascii()); + qWarning("%s", TQString("Failed create main database: " + mainDB->lastError().text()).ascii()); } mainDB->commit(); } @@ -321,7 +321,7 @@ TQStringList svn::cache::LogCache::cachedRepositories()const TQSqlQuery cur(TQString(),mainDB); cur.prepare(s_q); if (!cur.exec()) { - qDebug(cur.lastError().text().TOUTF8().data()); + qDebug("%s", TQString(cur.lastError().text().TOUTF8().data()).ascii()); throw svn::cache::DatabaseException(TQString("Could not retrieve values: ")+cur.lastError().text()); return _res; } |