diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:41:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:41:07 -0600 |
commit | dc141e9d18c39ec57f42d6c5df1a67a365c407f8 (patch) | |
tree | 8873df3c617e477881aa453385c81362b8531d7f /src/svnqt/cache/ReposLog.cpp | |
parent | d6609da6b8c963fc19b622ab37f38e65df4e0a29 (diff) | |
download | tdesvn-dc141e9d18c39ec57f42d6c5df1a67a365c407f8.tar.gz tdesvn-dc141e9d18c39ec57f42d6c5df1a67a365c407f8.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/svnqt/cache/ReposLog.cpp')
-rw-r--r-- | src/svnqt/cache/ReposLog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/svnqt/cache/ReposLog.cpp b/src/svnqt/cache/ReposLog.cpp index d63d1d3..34aa99f 100644 --- a/src/svnqt/cache/ReposLog.cpp +++ b/src/svnqt/cache/ReposLog.cpp @@ -360,15 +360,15 @@ bool svn::cache::ReposLog::log(const svn::Path&what,const svn::Revision&_start, svn::Revision peg = date2numberRev(_peg,true); svn::Revision end = date2numberRev(_end,true); svn::Revision start = date2numberRev(_start,true); - TQString query_string = TQString(s_q).tqarg(what.native()).tqarg(what.native()).tqarg((peg==svn::Revision::UNDEFINED?"":TQString(" AND revision<=%1").tqarg(peg.revnum()))); + TQString query_string = TQString(s_q).arg(what.native()).arg(what.native()).arg((peg==svn::Revision::UNDEFINED?"":TQString(" AND revision<=%1").arg(peg.revnum()))); if (peg==svn::Revision::UNDEFINED) { peg = latestCachedRev(); } if (!itemExists(peg,what)) { - throw svn::cache::DatabaseException(TQString("Entry '%1' does not exists at revision %2").tqarg(what.native()).tqarg(peg.toString())); + throw svn::cache::DatabaseException(TQString("Entry '%1' does not exists at revision %2").arg(what.native()).arg(peg.toString())); } if (limit>0) { - query_string+=TQString(" LIMIT %1").tqarg(limit); + query_string+=TQString(" LIMIT %1").arg(limit); } TQSqlQuery _q(TQString(),m_Database); TQSqlQuery _q2(TQString(),m_Database); @@ -384,7 +384,7 @@ bool svn::cache::ReposLog::log(const svn::Path&what,const svn::Revision&_start, target[revision].author=_q.value(1).toString(); target[revision].date=_q.value(2).toLongLong(); target[revision].message=_q.value(3).toString(); - query_string=s_e.tqarg(revision); + query_string=s_e.arg(revision); _q2.prepare(query_string); if (!_q2.exec()) { qDebug("Could not select values: %s",_q2.lastError().text().TOUTF8().data()); @@ -416,7 +416,7 @@ bool svn::cache::ReposLog::itemExists(const svn::Revision&peg,const svn::Path&pa #if 0 static TQString _s1("select revision from changeditems where changeditem='%1' and action='A' and revision<=%2 order by revision desc limit 1"); TQSqlQuery _q(TQString(),m_Database); - TQString query_string=TQString(_s1).tqarg(path.native()).tqarg(peg.revnum()); + TQString query_string=TQString(_s1).arg(path.native()).arg(peg.revnum()); if (!_q.exec(query_string)) { qDebug("Could not select values: %s",_q.lastError().text().TOUTF8().data()); qDebug(_q.lastQuery().TOUTF8().data()); @@ -429,10 +429,10 @@ bool svn::cache::ReposLog::itemExists(const svn::Revision&peg,const svn::Path&pa static TQString _s2("select revision from changeditem where changeditem in (%1) and action='D' and revision>%2 and revision<=%3 order by revision desc limit 1"); TQStringList p_list; while (_p.length()>0) { - p_list.append(TQString("'%1'").tqarg(_p.native())); + p_list.append(TQString("'%1'").arg(_p.native())); _p.removeLast(); } - query_string=TQString(_s2).tqarg(p_list.join(",")).tqarg(); + query_string=TQString(_s2).arg(p_list.join(",")).arg(); #endif return true; } |