mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Use preincrement for iterators instead of postincrement
This commit is contained in:
parent
5874c7bd57
commit
abf8c179fc
9 changed files with 28 additions and 28 deletions
|
@ -312,7 +312,7 @@ void PeerListWidget::loadPeers(const QTorrentHandle &h, bool force_hostname_reso
|
|||
h.get_peer_info(peers);
|
||||
std::vector<peer_info>::const_iterator itr;
|
||||
QSet<QString> old_peers_set = m_peerItems.keys().toSet();
|
||||
for (itr = peers.begin(); itr != peers.end(); itr++) {
|
||||
for (itr = peers.begin(); itr != peers.end(); ++itr) {
|
||||
peer_info peer = *itr;
|
||||
QString peer_ip = misc::toQString(peer.ip.address().to_string(ec));
|
||||
if (ec) continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue