Maybe this?
```
for(int i=0; i<trackers.size(); ++i) {
     foreach (QTreeWidgetItem* w, selected_items) {
           if (w->text(COL_URL) == misc::toQString(trackers[i].url)) {
                 h.force_reannounce(0, i);
                 break;
            }
     }
}
```
(random tabbing above, don't copy paste directly)

So pos, it, itend are unneeded.