summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/svnactions.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit93f9fda465964160b66d9252d2cf9b4c284eab50 (patch)
tree51575108fadbf39900f2168fc504ad66b59906c3 /src/svnfrontend/svnactions.cpp
parent4be907152dfb5461311d9db1d63120c28a0bad0a (diff)
downloadtdesvn-93f9fda465964160b66d9252d2cf9b4c284eab50.tar.gz
tdesvn-93f9fda465964160b66d9252d2cf9b4c284eab50.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnfrontend/svnactions.cpp')
-rw-r--r--src/svnfrontend/svnactions.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/svnfrontend/svnactions.cpp b/src/svnfrontend/svnactions.cpp
index d49f5a6..9ecb6bc 100644
--- a/src/svnfrontend/svnactions.cpp
+++ b/src/svnfrontend/svnactions.cpp
@@ -138,7 +138,7 @@ public:
if (Kdesvnsettings::use_external_diff()) {
TQString edisp = Kdesvnsettings::external_diff_display();
TQStringList wlist = TQStringList::split(" ",edisp);
- if (wlist.count()>=3 && edisp.tqfind("%1")!=-1 && edisp.tqfind("%2")!=-1) {
+ if (wlist.count()>=3 && edisp.find("%1")!=-1 && edisp.find("%2")!=-1) {
return true;
}
}
@@ -345,7 +345,7 @@ bool SvnActions::getSingleLog(svn::LogEntry&t,const svn::Revision&r,const TQStri
svn::LogEntriesMap _m;
try {
svn::cache::ReposLog rl(m_Data->m_Svnclient ,root);
- if (rl.isValid() && rl.simpleLog(_m,r,r,true) && _m.tqfind(r.revnum())!=_m.end() ) {
+ if (rl.isValid() && rl.simpleLog(_m,r,r,true) && _m.find(r.revnum())!=_m.end() ) {
t = _m[r.revnum()];
res = true;
}
@@ -357,7 +357,7 @@ bool SvnActions::getSingleLog(svn::LogEntry&t,const svn::Revision&r,const TQStri
if (!res) {
svn::SharedPointer<svn::LogEntriesMap> log = getLog(r,r,peg,root,true,1);
if (log) {
- if (log->tqfind(r.revnum())!=log->end()) {
+ if (log->find(r.revnum())!=log->end()) {
t = (*log)[r.revnum()];
res = true;
}
@@ -379,7 +379,7 @@ bool SvnActions::singleInfo(const TQString&what,const svn::Revision&_rev,svn::In
// working copy
// url = svn::Wc::getUrl(what);
url = what;
- if (url.tqfind("@")!=-1) {
+ if (url.find("@")!=-1) {
url+="@BASE";
}
peg = svn::Revision::UNDEFINED;
@@ -676,7 +676,7 @@ TQString SvnActions::getInfo(const TQString& _what,const svn::Revision&rev,const
connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&)));
svn::InfoEntries e;
entries = (m_Data->m_Svnclient->info(_what+
- (_what.tqfind("@")>-1&&!svn::Url::isValid(_what)?"@BASE":""),recursive?svn::DepthInfinity:svn::DepthEmpty,rev,peg));
+ (_what.find("@")>-1&&!svn::Url::isValid(_what)?"@BASE":""),recursive?svn::DepthInfinity:svn::DepthEmpty,rev,peg));
} catch (const svn::Exception&e) {
emit clientException(e.msg());
return TQString();
@@ -1058,14 +1058,14 @@ void SvnActions::procClosed(KProcess*proc)
{
if (!proc) return;
TQMap<KProcess*,TQStringList>::iterator it;
- if ( (it=m_Data->m_tempfilelist.tqfind(proc))!=m_Data->m_tempfilelist.end()) {
+ if ( (it=m_Data->m_tempfilelist.find(proc))!=m_Data->m_tempfilelist.end()) {
for (TQStringList::iterator it2 = (*it).begin();
it2 != (*it).end();++it2) {
::unlink((*it2).ascii());
}
m_Data->m_tempfilelist.erase(it);
}
- if ( (it=m_Data->m_tempdirlist.tqfind(proc))!=m_Data->m_tempdirlist.end()) {
+ if ( (it=m_Data->m_tempdirlist.find(proc))!=m_Data->m_tempdirlist.end()) {
for (TQStringList::iterator it2 = (*it).begin();
it2 != (*it).end();++it2) {
KIO::NetAccess::del((*it2),0);
@@ -1323,7 +1323,7 @@ void SvnActions::dispDiff(const TQByteArray&ex)
TQString what = Kdesvnsettings::external_diff_display();
int r = KProcess::Stdin|KProcess::Stderr;
- if (Kdesvnsettings::use_external_diff() && (what.tqfind("%1")==-1 || what.tqfind("%2")==-1)) {
+ if (Kdesvnsettings::use_external_diff() && (what.find("%1")==-1 || what.find("%2")==-1)) {
TQStringList wlist = TQStringList::split(" ",what);
KProcess*proc = new KProcess();
bool fname_used = false;
@@ -2680,7 +2680,7 @@ bool SvnActions::makeIgnoreEntry(SvnItem*which,bool unignore)
}
bool result = false;
TQStringList lst = TQStringList::split("\n",data);
- TQStringList::iterator it = lst.tqfind(name);
+ TQStringList::iterator it = lst.find(name);
if (it != lst.end()) {
if (unignore) {
lst.erase(it);
@@ -2752,7 +2752,7 @@ bool SvnActions::isLockNeeded(SvnItem*which,const svn::Revision&where)
svn::PathPropertiesMapList pm = pmp.second;
if (pm.size()>0) {
svn::PropertiesMap&mp = pm[0].second;
- if (mp.tqfind("svn:needs-lock")!=mp.end()) {
+ if (mp.find("svn:needs-lock")!=mp.end()) {
return true;
}
}
@@ -2775,7 +2775,7 @@ TQString SvnActions::searchProperty(TQString&Store, const TQString&property, con
}
if (pm->size()>0) {
svn::PropertiesMap&mp = (*pm)[0].second;
- if (mp.tqfind(property)!=mp.end()) {
+ if (mp.find(property)!=mp.end()) {
Store=mp[property];
return pa;
}
@@ -2850,7 +2850,7 @@ void SvnActions::slotCancel(bool how)
void SvnActions::setContextData(const TQString&aKey,const TQString&aValue)
{
if (aValue.isNull()) {
- TQMap<TQString,TQString>::iterator it = m_Data->m_contextData.tqfind(aKey);
+ TQMap<TQString,TQString>::iterator it = m_Data->m_contextData.find(aKey);
if (it!=m_Data->m_contextData.end()) {
m_Data->m_contextData.remove(it);
}
@@ -2866,7 +2866,7 @@ void SvnActions::clearContextData()
TQString SvnActions::getContextData(const TQString&aKey)const
{
- if (m_Data->m_contextData.tqfind(aKey)!=m_Data->m_contextData.end()) {
+ if (m_Data->m_contextData.find(aKey)!=m_Data->m_contextData.end()) {
return m_Data->m_contextData[aKey];
}
return TQString();