mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Convert to range-based for loop
This commit is contained in:
parent
8a3f942385
commit
947c7e1d64
2 changed files with 4 additions and 9 deletions
|
@ -466,8 +466,7 @@ void TrackerListWidget::editSelectedTracker()
|
|||
|
||||
QList<BitTorrent::TrackerEntry> trackers = torrent->trackers();
|
||||
bool match = false;
|
||||
for (int i = 0; i < trackers.size(); ++i) {
|
||||
BitTorrent::TrackerEntry &entry = trackers[i];
|
||||
for (auto &entry : trackers) {
|
||||
if (newTrackerURL == QUrl(entry.url())) {
|
||||
QMessageBox::warning(this, tr("Tracker editing failed"), tr("The tracker URL already exists."));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue