diff options
Diffstat (limited to 'src/RequestGroupEntry.cc')
| -rw-r--r-- | src/RequestGroupEntry.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/RequestGroupEntry.cc b/src/RequestGroupEntry.cc index 7a2c64b8..61e7bbc4 100644 --- a/src/RequestGroupEntry.cc +++ b/src/RequestGroupEntry.cc @@ -40,17 +40,13 @@ namespace aria2 { RequestGroupEntry::RequestGroupEntry(RequestGroup* requestGroup, - std::unique_ptr<Command> nextCommand): - requestGroup_(requestGroup), - nextCommand_(std::move(nextCommand)) + std::unique_ptr<Command> nextCommand) + : requestGroup_(requestGroup), nextCommand_(std::move(nextCommand)) { requestGroup_->increaseNumCommand(); } -RequestGroupEntry::~RequestGroupEntry() -{ - requestGroup_->decreaseNumCommand(); -} +RequestGroupEntry::~RequestGroupEntry() { requestGroup_->decreaseNumCommand(); } const std::unique_ptr<Command>& RequestGroupEntry::getNextCommand() const { |
