diff options
Diffstat (limited to 'plugins/stats')
-rw-r--r-- | plugins/stats/ChartDrawer.cc | 4 | ||||
-rw-r--r-- | plugins/stats/PeerMonitor.cc | 4 |
2 files changed, 4 insertions, 4 deletions
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("<img src='%1'> - %2<br>").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("<img src='%1'> - %2<br>").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()); |