From 2a99db3ebc4c211e436f95fde24b5ac6826d0267 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- plugins/stats/ChartDrawer.cc | 4 ++-- plugins/stats/PeerMonitor.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/stats') diff --git a/plugins/stats/ChartDrawer.cc b/plugins/stats/ChartDrawer.cc index 5824684..4c7c1d3 100644 --- a/plugins/stats/ChartDrawer.cc +++ b/plugins/stats/ChartDrawer.cc @@ -433,8 +433,8 @@ void ChartDrawer::MakeLegendTooltip() img[i].setPixel(15, px, 0); //r } - factory->setImage(mEls[i].GetName().tqreplace(' ', '_') + "-" + TQString::number(i), img[i]); - helpstr += TQString("  -  %2
").tqarg(mEls[i].GetName().tqreplace(" ", "_") + "-" + TQString::number(i)).tqarg( mEls[i].GetName() ); + factory->setImage(mEls[i].GetName().replace(' ', '_') + "-" + TQString::number(i), img[i]); + helpstr += TQString("  -  %2
").tqarg(mEls[i].GetName().replace(" ", "_") + "-" + TQString::number(i)).tqarg( mEls[i].GetName() ); } TQToolTip::add(this, helpstr); diff --git a/plugins/stats/PeerMonitor.cc b/plugins/stats/PeerMonitor.cc index 8a903c3..083e158 100644 --- a/plugins/stats/PeerMonitor.cc +++ b/plugins/stats/PeerMonitor.cc @@ -43,7 +43,7 @@ void PeerMonitor::peerRemoved (kt::PeerInterface *peer) TQMutexLocker lock(&mtx); - data_t::iterator it = std::tqfind(mPeers.begin(), mPeers.end(), peer); + data_t::iterator it = std::find(mPeers.begin(), mPeers.end(), peer); if(it != mPeers.end()) { @@ -73,7 +73,7 @@ void PeerMonitor::stopped () void PeerMonitor::destroyed () { - if(pmPeerMMgr -> tqfind(pmTorIface -> getInfoHash()) != pmPeerMMgr -> end() ) + if(pmPeerMMgr -> find(pmTorIface -> getInfoHash()) != pmPeerMMgr -> end() ) { pmTorIface -> setMonitor(0); pmPeerMMgr -> erase(pmTorIface -> getInfoHash()); -- cgit v1.2.1