summaryrefslogtreecommitdiff
path: root/src/FileAllocationDispatcherCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 00:17:44 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 15:56:08 +0900
commit6b397c812520016f7b2b22544f51bfddbcca8dfe (patch)
tree6dcf656fb19da47833324111efcee62c66809365 /src/FileAllocationDispatcherCommand.cc
parentc9e58779e1a30b32ea2f86e686211d901aca19f0 (diff)
Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry
Diffstat (limited to 'src/FileAllocationDispatcherCommand.cc')
-rw-r--r--src/FileAllocationDispatcherCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FileAllocationDispatcherCommand.cc b/src/FileAllocationDispatcherCommand.cc
index 4a56b569..4cc9c43d 100644
--- a/src/FileAllocationDispatcherCommand.cc
+++ b/src/FileAllocationDispatcherCommand.cc
@@ -47,11 +47,11 @@ FileAllocationDispatcherCommand::FileAllocationDispatcherCommand
(cuid_t cuid,
const std::shared_ptr<FileAllocationMan>& fileAllocMan,
DownloadEngine* e)
- : SequentialDispatcherCommand<FileAllocationEntry>(cuid, fileAllocMan, e)
+ : SequentialDispatcherCommand<FileAllocationEntry>{cuid, fileAllocMan, e}
{}
std::unique_ptr<Command> FileAllocationDispatcherCommand::createCommand
-(const std::shared_ptr<FileAllocationEntry>& entry)
+(FileAllocationEntry* entry)
{
cuid_t newCUID = getDownloadEngine()->newCUID();
A2_LOG_INFO(fmt(MSG_FILE_ALLOCATION_DISPATCH, newCUID));