diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 00:17:44 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 15:56:08 +0900 |
| commit | 6b397c812520016f7b2b22544f51bfddbcca8dfe (patch) | |
| tree | 6dcf656fb19da47833324111efcee62c66809365 /src/CheckIntegrityEntry.cc | |
| parent | c9e58779e1a30b32ea2f86e686211d901aca19f0 (diff) | |
Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry
Diffstat (limited to 'src/CheckIntegrityEntry.cc')
| -rw-r--r-- | src/CheckIntegrityEntry.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CheckIntegrityEntry.cc b/src/CheckIntegrityEntry.cc index a06b468e..3f23a7fa 100644 --- a/src/CheckIntegrityEntry.cc +++ b/src/CheckIntegrityEntry.cc @@ -86,11 +86,11 @@ void CheckIntegrityEntry::cutTrailingGarbage() void CheckIntegrityEntry::proceedFileAllocation (std::vector<std::unique_ptr<Command>>& commands, - const std::shared_ptr<FileAllocationEntry>& entry, + std::unique_ptr<FileAllocationEntry> entry, DownloadEngine* e) { if(getRequestGroup()->needsFileAllocation()) { - e->getFileAllocationMan()->pushEntry(entry); + e->getFileAllocationMan()->pushEntry(std::move(entry)); } else { entry->prepareForNextAction(commands, e); } |
