summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 00:30:30 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 15:56:08 +0900
commit697c1008f715669cdd6c8e5b7610a20182375253 (patch)
treeae942c82de22caa3dc6273ff257827f80711bfc1 /src/DownloadEngine.cc
parent6b397c812520016f7b2b22544f51bfddbcca8dfe (diff)
DownloadEngine: Use std::unique_ptr for checkIntegrityMan_, fileAllocationMan_
Diffstat (limited to 'src/DownloadEngine.cc')
-rw-r--r--src/DownloadEngine.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DownloadEngine.cc b/src/DownloadEngine.cc
index 8de6a316..347bce6a 100644
--- a/src/DownloadEngine.cc
+++ b/src/DownloadEngine.cc
@@ -585,15 +585,15 @@ void DownloadEngine::setRequestGroupMan
}
void DownloadEngine::setFileAllocationMan
-(const std::shared_ptr<FileAllocationMan>& faman)
+(std::unique_ptr<FileAllocationMan> faman)
{
- fileAllocationMan_ = faman;
+ fileAllocationMan_ = std::move(faman);
}
void DownloadEngine::setCheckIntegrityMan
-(const std::shared_ptr<CheckIntegrityMan>& ciman)
+(std::unique_ptr<CheckIntegrityMan> ciman)
{
- checkIntegrityMan_ = ciman;
+ checkIntegrityMan_ = std::move(ciman);
}
#ifdef HAVE_ARES_ADDR_NODE