diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 0813b39aed2cf4c84157a22c4c9594336d93d412 (patch) | |
tree | 0f6157f9c9ecc6ed26cb98f058219a8021d3f4a6 /cervisia/misc.cpp | |
parent | 35dc58791106d7a1864264063df5f3ee3f1f0f15 (diff) | |
download | tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.tar.gz tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/misc.cpp')
-rw-r--r-- | cervisia/misc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cervisia/misc.cpp b/cervisia/misc.cpp index a0eb35be..779fbe98 100644 --- a/cervisia/misc.cpp +++ b/cervisia/misc.cpp @@ -95,14 +95,14 @@ static const TQStringList FetchBranchesAndTags(const TQString& searchedType, continue; if( (wsPos = FindWhiteSpace(line, 2)) < 0 ) continue; - if( (bracketPos = line.tqfind('(', wsPos + 1)) < 0 ) + if( (bracketPos = line.find('(', wsPos + 1)) < 0 ) continue; - if( (colonPos = line.tqfind(':', bracketPos + 1)) < 0 ) + if( (colonPos = line.find(':', bracketPos + 1)) < 0 ) continue; const TQString tag = line.mid(1, wsPos - 1); const TQString type = line.mid(bracketPos + 1, colonPos - bracketPos - 1); - if( type == searchedType && !branchOrTagList.tqcontains(tag) ) + if( type == searchedType && !branchOrTagList.contains(tag) ) branchOrTagList.push_back(tag); } @@ -122,7 +122,7 @@ bool Cervisia::IsValidTag(const TQString& tag) for( uint i = 1; i < tag.length(); ++i ) { - if( !isgraph(tag[i].latin1()) || prohibitedChars.tqcontains(tag[i]) ) + if( !isgraph(tag[i].latin1()) || prohibitedChars.contains(tag[i]) ) return false; } @@ -248,7 +248,7 @@ TQStringList splitLine(TQString line, char delim) TQStringList list; line = line.simplifyWhiteSpace(); - while ((pos = line.tqfind(delim)) != -1) + while ((pos = line.find(delim)) != -1) { list.append(line.left(pos)); line = line.mid(pos+1, line.length()-pos-1); @@ -309,12 +309,12 @@ int compareRevisions(const TQString& rev1, const TQString& rev2) int startPos2(0); while (startPos1 < length1 && startPos2 < length2) { - int pos1(rev1.tqfind('.', startPos1)); + int pos1(rev1.find('.', startPos1)); if (pos1 < 0) pos1 = length1; const int partLength1(pos1 - startPos1); - int pos2(rev2.tqfind('.', startPos2)); + int pos2(rev2.find('.', startPos2)); if (pos2 < 0) pos2 = length2; const int partLength2(pos2 - startPos2); |