From 529b9fdceb7b5a277a983badd29dca3cc69259c5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 1 Jul 2013 21:42:51 +0900 Subject: Use std::unique_ptr for ExtensionMessage --- src/UTMetadataRequestFactory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/UTMetadataRequestFactory.h') diff --git a/src/UTMetadataRequestFactory.h b/src/UTMetadataRequestFactory.h index e8de1e67..7e5688d8 100644 --- a/src/UTMetadataRequestFactory.h +++ b/src/UTMetadataRequestFactory.h @@ -54,7 +54,7 @@ class BtMessage; class UTMetadataRequestFactory { private: - std::shared_ptr dctx_; + DownloadContext* dctx_; std::shared_ptr peer_; @@ -70,9 +70,9 @@ public: // Creates and returns at most num of ut_metadata request // message. pieceStorage is used to identify missing piece. std::vector> create - (size_t num, const std::shared_ptr& pieceStorage); + (size_t num, PieceStorage* pieceStorage); - void setDownloadContext(const std::shared_ptr& dctx) + void setDownloadContext(DownloadContext* dctx) { dctx_ = dctx; } -- cgit