summaryrefslogtreecommitdiff
path: root/src/RequestGroup.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 18:42:57 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 18:42:57 +0900
commitcc3cd8a58b11d639c327ca6debb041747c3828d6 (patch)
tree5ac46b795cf8e0780119677f2ec399314b26fd5a /src/RequestGroup.cc
parent3a3ac4ef9b687274fc123dd1adf5b5f5e02d013d (diff)
DownloadEngine: Use std::unique_ptr for btRegistry_
Diffstat (limited to 'src/RequestGroup.cc')
-rw-r--r--src/RequestGroup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc
index ff0ff5bb..aa548611 100644
--- a/src/RequestGroup.cc
+++ b/src/RequestGroup.cc
@@ -289,7 +289,7 @@ void RequestGroup::createInitialCommand
throw DOWNLOAD_FAILURE_EXCEPTION
("Cancel BitTorrent download in dry-run context.");
}
- std::shared_ptr<BtRegistry> btRegistry = e->getBtRegistry();
+ auto& btRegistry = e->getBtRegistry();
if(btRegistry->getDownloadContext(torrentAttrs->infoHash)) {
// TODO If metadataGetMode == false and each FileEntry has
// URI, then go without BT.