From 6b397c812520016f7b2b22544f51bfddbcca8dfe Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 6 Jul 2013 00:17:44 +0900 Subject: Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry --- src/AbstractCommand.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/AbstractCommand.cc') diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc index 6aa149de..9d154c60 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -770,10 +770,11 @@ std::string AbstractCommand::resolveHostname } void AbstractCommand::prepareForNextAction -(const std::shared_ptr& checkEntry) +(std::unique_ptr checkEntry) { std::vector> commands; - requestGroup_->processCheckIntegrityEntry(commands, checkEntry, e_); + requestGroup_->processCheckIntegrityEntry(commands, std::move(checkEntry), + e_); e_->addCommand(std::move(commands)); e_->setNoWait(true); } -- cgit