Use preincrement for iterators instead of postincrement

This commit is contained in:
Константин Гончарик
2012-07-13 21:48:19 +03:00
committed by Christophe Dumez
parent 5874c7bd57
commit abf8c179fc
9 changed files with 28 additions and 28 deletions

View File

@@ -90,7 +90,7 @@ public slots:
std::vector<libtorrent::announce_entry>::iterator itr = tor_trackers.begin();
while(itr != tor_trackers.end()) {
existingTrackers << QUrl(misc::toQString(itr->url));
itr++;
++itr;
}
// Load from current user list
QStringList tmp = trackers_list->toPlainText().split("\n");