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 d8400b9..d1f5aaa 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()) { - tqWarning("%s", TQString("Failed to open main database: " + db->lastError().text()).ascii()); + tqWarning("Failed to open main database: %s", db->lastError().text().TOUTF8().data()); } 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()) { - tqWarning("%s", TQString("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")).ascii()); + tqWarning("Failed to open main database: %s", (mainDB?mainDB->lastError().text().TOUTF8().data():"No database object.")); } 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);")) { - tqWarning("%s", TQString("Failed create main database: " + mainDB->lastError().text()).ascii()); + tqWarning("Failed create main database: %s", mainDB->lastError().text().TOUTF8().data()); } mainDB->commit(); } @@ -321,7 +321,7 @@ TQStringList svn::cache::LogCache::cachedRepositories()const TQSqlQuery cur(TQString(),mainDB); cur.prepare(s_q); if (!cur.exec()) { - tqDebug("%s", TQString(cur.lastError().text().TOUTF8().data()).ascii()); + tqDebug("%s", cur.lastError().text().TOUTF8().data()); throw svn::cache::DatabaseException(TQString("Could not retrieve values: ")+cur.lastError().text()); return _res; } |