diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-05 22:48:34 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 15:56:08 +0900 |
| commit | c9e58779e1a30b32ea2f86e686211d901aca19f0 (patch) | |
| tree | 4acaa3ca196446f67e17b1ab06f2621a50b5c08b /src/CheckIntegrityEntry.cc | |
| parent | d3a04d10a72b00487eb3c994bd3d0405e11c4789 (diff) | |
Use std::unique_ptr for IteratableValidator
Diffstat (limited to 'src/CheckIntegrityEntry.cc')
| -rw-r--r-- | src/CheckIntegrityEntry.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CheckIntegrityEntry.cc b/src/CheckIntegrityEntry.cc index 93a3fc20..a06b468e 100644 --- a/src/CheckIntegrityEntry.cc +++ b/src/CheckIntegrityEntry.cc @@ -45,8 +45,8 @@ namespace aria2 { CheckIntegrityEntry::CheckIntegrityEntry(RequestGroup* requestGroup, - std::unique_ptr<Command> nextCommand): - RequestGroupEntry(requestGroup, std::move(nextCommand)) + std::unique_ptr<Command> nextCommand) + : RequestGroupEntry{requestGroup, std::move(nextCommand)} {} CheckIntegrityEntry::~CheckIntegrityEntry() {} @@ -97,9 +97,9 @@ void CheckIntegrityEntry::proceedFileAllocation } void CheckIntegrityEntry::setValidator -(const std::shared_ptr<IteratableValidator>& validator) +(std::unique_ptr<IteratableValidator> validator) { - validator_ = validator; + validator_ = std::move(validator); } } // namespace aria2 |
