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 | 2a99db3ebc4c211e436f95fde24b5ac6826d0267 (patch) | |
tree | ce2e122a017c12f803ea428a299c7e3cec52c8fe /libktorrent/torrent/torrentcontrol.cpp | |
parent | 100dcb6968ca22bfa52836ad55eb4f01225791db (diff) | |
download | ktorrent-2a99db3ebc4c211e436f95fde24b5ac6826d0267.tar.gz ktorrent-2a99db3ebc4c211e436f95fde24b5ac6826d0267.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/torrent/torrentcontrol.cpp')
-rw-r--r-- | libktorrent/torrent/torrentcontrol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libktorrent/torrent/torrentcontrol.cpp b/libktorrent/torrent/torrentcontrol.cpp index ba51092..a586356 100644 --- a/libktorrent/torrent/torrentcontrol.cpp +++ b/libktorrent/torrent/torrentcontrol.cpp @@ -785,7 +785,7 @@ namespace bt bool TorrentControl::changeDataDir(const TQString & new_dir) { - int pos = datadir.tqfindRev(bt::DirSeparator(),-2); + int pos = datadir.findRev(bt::DirSeparator(),-2); if (pos == -1) { Out(SYS_GEN|LOG_DEBUG) << "Could not find torX part in " << datadir << endl; @@ -833,7 +833,7 @@ namespace bt TQString nd; if (istats.custom_output_name) { - int slash_pos = stats.output_path.tqfindRev(bt::DirSeparator(),-2); + int slash_pos = stats.output_path.findRev(bt::DirSeparator(),-2); nd = new_dir + stats.output_path.mid(slash_pos + 1); } else @@ -1255,10 +1255,10 @@ namespace bt { // in case of error copy torX dir to migrate-failed-tor TQString dd = datadir; - int pos = dd.tqfindRev("tor"); + int pos = dd.findRev("tor"); if (pos != - 1) { - dd = dd.tqreplace(pos,3,"migrate-failed-tor"); + dd = dd.replace(pos,3,"migrate-failed-tor"); Out() << "Copying " << datadir << " to " << dd << endl; bt::CopyDir(datadir,dd,true); } |