diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-05 21:54:07 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 15:56:08 +0900 |
| commit | f8d305fe639a2a458106f3f233f696157c6ab06d (patch) | |
| tree | c55db59952332c1f29e665d44781a82bf2580f83 /src/FileAllocationEntry.cc | |
| parent | 345ba415a50fbf99b1f0049f29be62d0bd11c608 (diff) | |
Use std::unique_ptr for FileAllocationIterator
Diffstat (limited to 'src/FileAllocationEntry.cc')
| -rw-r--r-- | src/FileAllocationEntry.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/FileAllocationEntry.cc b/src/FileAllocationEntry.cc index 4a580398..e276e40e 100644 --- a/src/FileAllocationEntry.cc +++ b/src/FileAllocationEntry.cc @@ -42,9 +42,10 @@ namespace aria2 { FileAllocationEntry::FileAllocationEntry(RequestGroup* requestGroup, - std::unique_ptr<Command> nextCommand): - RequestGroupEntry(requestGroup, std::move(nextCommand)), - fileAllocationIterator_(requestGroup->getPieceStorage()->getDiskAdaptor()->fileAllocationIterator()) + std::unique_ptr<Command> nextCommand) + : RequestGroupEntry{requestGroup, std::move(nextCommand)}, + fileAllocationIterator_{requestGroup->getPieceStorage()->getDiskAdaptor() + ->fileAllocationIterator()} {} FileAllocationEntry:: ~FileAllocationEntry() |
