From 07d270c87e6f9184aea4ca17eb26e466712e8db2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 22 Jun 2013 01:10:38 +0900 Subject: Require -std=c++11 and use std::shared_ptr instead of SharedHandle --- src/UTMetadataRequestFactory.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/UTMetadataRequestFactory.h') diff --git a/src/UTMetadataRequestFactory.h b/src/UTMetadataRequestFactory.h index 7af3e8da..8839cfe4 100644 --- a/src/UTMetadataRequestFactory.h +++ b/src/UTMetadataRequestFactory.h @@ -38,8 +38,8 @@ #include "common.h" #include +#include -#include "SharedHandle.h" #include "Command.h" namespace aria2 { @@ -54,9 +54,9 @@ class BtMessage; class UTMetadataRequestFactory { private: - SharedHandle dctx_; + std::shared_ptr dctx_; - SharedHandle peer_; + std::shared_ptr peer_; BtMessageDispatcher* dispatcher_; @@ -69,10 +69,10 @@ public: // Creates at most num of ut_metadata request message and appends // them to msgs. pieceStorage is used to identify missing piece. - void create(std::vector >& msgs, size_t num, - const SharedHandle& pieceStorage); + void create(std::vector >& msgs, size_t num, + const std::shared_ptr& pieceStorage); - void setDownloadContext(const SharedHandle& dctx) + void setDownloadContext(const std::shared_ptr& dctx) { dctx_ = dctx; } @@ -87,7 +87,7 @@ public: messageFactory_ = factory; } - void setPeer(const SharedHandle& peer) + void setPeer(const std::shared_ptr& peer) { peer_ = peer; } -- cgit