diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2012-11-03 17:38:39 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-11-03 17:38:39 +0100 |
commit | 104a85980ff2fbd7b1fd99467d1c53f616af8be1 (patch) | |
tree | 13b65930348cda97850b3d6800cd32daa591fecc /src/svnqt/cache/LogCache.cpp | |
parent | e209c957949e8b5aef11209ff27e91da6ebfea20 (diff) | |
download | tdesvn-104a85980ff2fbd7b1fd99467d1c53f616af8be1.tar.gz tdesvn-104a85980ff2fbd7b1fd99467d1c53f616af8be1.zip |
Fix 'format not a string literal' error
Thanks to Francois Andriot
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 c57176c..d8400b9 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(TQString("Failed to open main database: " + db->lastError().text()).ascii()); + tqWarning("%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()) { - tqWarning(TQString("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")).ascii()); + tqWarning("%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);")) { - tqWarning(TQString("Failed create main database: " + mainDB->lastError().text()).ascii()); + tqWarning("%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()) { - tqDebug(cur.lastError().text().TOUTF8().data()); + tqDebug("%s", TQString(cur.lastError().text().TOUTF8().data()).ascii()); throw svn::cache::DatabaseException(TQString("Could not retrieve values: ")+cur.lastError().text()); return _res; } |