From e97a6f5f08de6f42e0501c1080e20aa35501b0e0 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 30 Oct 2009 14:58:17 +0000 Subject: [PATCH] - Fix tracker addition to torrents --- src/qtorrenthandle.cpp | 4 ++-- src/qtorrenthandle.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index e51389244..56ca2a441 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -239,9 +239,9 @@ size_type QTorrentHandle::filesize_at(unsigned int index) const { return h.get_torrent_info().file_at(index).size; } -std::vector const& QTorrentHandle::trackers() const { +std::vector QTorrentHandle::trackers() const { Q_ASSERT(h.is_valid()); - return h.get_torrent_info().trackers(); + return h.trackers(); } torrent_status::state_t QTorrentHandle::state() const { diff --git a/src/qtorrenthandle.h b/src/qtorrenthandle.h index fa10bf54e..f034c6070 100644 --- a/src/qtorrenthandle.h +++ b/src/qtorrenthandle.h @@ -93,7 +93,7 @@ class QTorrentHandle { bool is_queued() const; QString file_at(unsigned int index) const; size_type filesize_at(unsigned int index) const; - std::vector const& trackers() const; + std::vector trackers() const; torrent_status::state_t state() const; QString creator() const; QString comment() const;