Coding style clean up

This commit is contained in:
Christophe Dumez
2012-02-20 19:56:07 +02:00
parent 00b4ad6ec8
commit f3448125c3
40 changed files with 227 additions and 228 deletions

View File

@@ -41,7 +41,7 @@ using namespace libtorrent;
class SpeedSample {
public:
SpeedSample(){}
SpeedSample() {}
void addSample(int s);
qreal average() const;
void clear();
@@ -106,7 +106,7 @@ void TorrentSpeedMonitor::removeSamples(const QString &hash)
void TorrentSpeedMonitor::removeSamples(const QTorrentHandle& h) {
try {
m_samples.remove(h.hash());
} catch(invalid_handle&){}
} catch(invalid_handle&) {}
}
qlonglong TorrentSpeedMonitor::getETA(const QString &hash) const
@@ -133,6 +133,6 @@ void TorrentSpeedMonitor::getSamples()
if (!it->is_paused())
m_samples[misc::toQString(it->info_hash())].addSample(it->status().download_payload_rate);
#endif
} catch(invalid_handle&){}
} catch(invalid_handle&) {}
}
}