diff --git a/src/trackerlist.cpp b/src/trackerlist.cpp index fe89785d0..9d5516cfc 100644 --- a/src/trackerlist.cpp +++ b/src/trackerlist.cpp @@ -231,10 +231,8 @@ void TrackerList::loadTrackers() { // Load actual trackers information QHash trackers_data = properties->getBTSession()->getTrackersInfo(h.hash()); QStringList old_trackers_urls = tracker_items.keys(); - std::vector trackers = h.trackers(); - std::vector::iterator it; - for(it = trackers.begin(); it != trackers.end(); it++) { - QStringList item_list; + const std::vector &trackers = h.trackers(); + for(std::vector::const_iterator it = trackers.begin(); it != trackers.end(); it++) { QString tracker_url = misc::toQString(it->url); QTreeWidgetItem *item = tracker_items.value(tracker_url, 0); if(!item) {