summaryrefslogtreecommitdiffstats
path: root/src/svnqt/cache/LogCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svnqt/cache/LogCache.cpp')
-rw-r--r--src/svnqt/cache/LogCache.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/svnqt/cache/LogCache.cpp b/src/svnqt/cache/LogCache.cpp
index 15fe04e..c2261c8 100644
--- a/src/svnqt/cache/LogCache.cpp
+++ b/src/svnqt/cache/LogCache.cpp
@@ -70,18 +70,18 @@ public:
TQSqlQuery _q(TQString(), aDb);
TQStringList list = aDb->tables();
- if (list.tqfind("logentries")==list.end()) {
+ if (list.find("logentries")==list.end()) {
aDb->transaction();
_q.exec("CREATE TABLE \"logentries\" (\"revision\" INTEGER UNITQUE,\"date\" INTEGER,\"author\" TEXT, \"message\" TEXT)");
aDb->commit();
}
- if (list.tqfind("changeditems")==list.end()) {
+ if (list.find("changeditems")==list.end()) {
aDb->transaction();
_q.exec("CREATE TABLE \"changeditems\" (\"revision\" INTEGER,\"changeditem\" TEXT,\"action\" TEXT,\"copyfrom\" TEXT,\"copyfromrev\" INTEGER, PRIMARY KEY(revision,changeditem,action))");
aDb->commit();
}
list = aDb->tables();
- if (list.tqfind("logentries")==list.end() || list.tqfind("changeditems")==list.end()) {
+ if (list.find("logentries")==list.end() || list.find("changeditems")==list.end()) {
return false;
}
return true;
@@ -148,12 +148,12 @@ public:
}
checkDone=true;
}
- if (m_mainDB.localData()->reposCacheNames.tqfind(dbFile)!=m_mainDB.localData()->reposCacheNames.end()) {
+ if (m_mainDB.localData()->reposCacheNames.find(dbFile)!=m_mainDB.localData()->reposCacheNames.end()) {
return TQSqlDatabase::database(m_mainDB.localData()->reposCacheNames[dbFile]);
}
int i = 0;
TQString _key = dbFile;
- while (TQSqlDatabase::tqcontains(_key)) {
+ while (TQSqlDatabase::contains(_key)) {
_key = TQString("%1-%2").tqarg(dbFile).tqarg(i++);
}
// qDebug("The repository key is now: %s",_key.TOUTF8().data());
@@ -179,7 +179,7 @@ public:
if (!m_mainDB.hasLocalData()) {
unsigned i=0;
TQString _key = STQLMAIN;
- while (TQSqlDatabase::tqcontains(_key)) {
+ while (TQSqlDatabase::contains(_key)) {
_key.sprintf("%s-%i",STQLMAIN,i++);
}
qDebug("The key is now: %s",_key.TOUTF8().data());