diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 6bfcf6b8b..81522f694 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -302,7 +302,7 @@ size_type QTorrentHandle::filesize_at(unsigned int index) const { return h.get_torrent_info().file_at(index).size; } -const std::vector& QTorrentHandle::trackers() const { +const std::vector QTorrentHandle::trackers() const { Q_ASSERT(h.is_valid()); return h.trackers(); } diff --git a/src/qtorrenthandle.h b/src/qtorrenthandle.h index 46ff6b567..a5b6b5d28 100644 --- a/src/qtorrenthandle.h +++ b/src/qtorrenthandle.h @@ -97,7 +97,7 @@ class QTorrentHandle { bool is_queued() const; QString file_at(unsigned int index) const; size_type filesize_at(unsigned int index) const; - const std::vector& trackers() const; + const std::vector trackers() const; torrent_status::state_t state() const; QString creator() const; QString comment() const; diff --git a/src/trackerlist.cpp b/src/trackerlist.cpp index 9d5516cfc..0783ca711 100644 --- a/src/trackerlist.cpp +++ b/src/trackerlist.cpp @@ -231,7 +231,7 @@ void TrackerList::loadTrackers() { // Load actual trackers information QHash trackers_data = properties->getBTSession()->getTrackersInfo(h.hash()); QStringList old_trackers_urls = tracker_items.keys(); - const std::vector &trackers = h.trackers(); + 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);