mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Use preincrement for iterators instead of postincrement
This commit is contained in:
committed by
Christophe Dumez
parent
5874c7bd57
commit
abf8c179fc
@@ -313,7 +313,7 @@ void TrackerList::deleteSelectedTrackers() {
|
||||
std::vector<announce_entry> remaining_trackers;
|
||||
std::vector<announce_entry> trackers = h.trackers();
|
||||
std::vector<announce_entry>::iterator it;
|
||||
for (it = trackers.begin(); it != trackers.end(); it++) {
|
||||
for (it = trackers.begin(); it != trackers.end(); ++it) {
|
||||
if (!urls_to_remove.contains(misc::toQString((*it).url))) {
|
||||
remaining_trackers.push_back(*it);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user