diff options
Diffstat (limited to 'src/svnqt/cache')
-rw-r--r-- | src/svnqt/cache/LogCache.cpp | 12 | ||||
-rw-r--r-- | src/svnqt/cache/sqlite3/qsql_sqlite3.cpp | 6 |
2 files changed, 9 insertions, 9 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()); diff --git a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp index a5faff5..6a8bea2 100644 --- a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp +++ b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp @@ -128,7 +128,7 @@ void TQSQLite3ResultPrivate::initColumns() for (int i = 0; i < nCols; ++i) { TQString colName = TQString::fromUtf8(sqlite3_column_name(stmt, i)); - int dotIdx = colName.tqfindRev('.'); + int dotIdx = colName.findRev('.'); rInf.append(TQSqlField(colName.mid(dotIdx == -1 ? 0 : dotIdx + 1), qSqliteType(sqlite3_column_type(stmt, i)))); } @@ -427,8 +427,8 @@ TQSqlIndex TQSQLite3Driver::primaryIndex(const TQString &tblname) const while(q.next()) { TQString name = q.value(2).toString(); TQSqlVariant::Type type = TQSqlVariant::Invalid; - if (rec.tqcontains(name)) - type = rec.tqfind(name).type(); + if (rec.contains(name)) + type = rec.find(name).type(); index.append(TQSqlField(name, type)); } return index; |