summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.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/AbstractCommand.cc
parentc9e58779e1a30b32ea2f86e686211d901aca19f0 (diff)
Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry
Diffstat (limited to 'src/AbstractCommand.cc')
-rw-r--r--src/AbstractCommand.cc5
1 files changed, 3 insertions, 2 deletions
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<CheckIntegrityEntry>& checkEntry)
+(std::unique_ptr<CheckIntegrityEntry> checkEntry)
{
std::vector<std::unique_ptr<Command>> commands;
- requestGroup_->processCheckIntegrityEntry(commands, checkEntry, e_);
+ requestGroup_->processCheckIntegrityEntry(commands, std::move(checkEntry),
+ e_);
e_->addCommand(std::move(commands));
e_->setNoWait(true);
}