diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
| commit | fa9f3fb5a3c8912a0a6880ffba9c72f4424ea044 (patch) | |
| tree | deb0b47b085a3a689bf386409734bfd3f72f57d2 /src/StreamFileAllocationEntry.h | |
| parent | bb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff) | |
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/StreamFileAllocationEntry.h')
| -rw-r--r-- | src/StreamFileAllocationEntry.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/StreamFileAllocationEntry.h b/src/StreamFileAllocationEntry.h index b7635bab..d4522b20 100644 --- a/src/StreamFileAllocationEntry.h +++ b/src/StreamFileAllocationEntry.h @@ -42,12 +42,14 @@ namespace aria2 { class StreamFileAllocationEntry : public FileAllocationEntry { public: StreamFileAllocationEntry(RequestGroup* requestGroup, - Command* nextCommand = 0); + std::unique_ptr<Command> nextCommand = + std::unique_ptr<Command>()); virtual ~StreamFileAllocationEntry(); - virtual void prepareForNextAction(std::vector<Command*>& commands, - DownloadEngine* e); + virtual void prepareForNextAction + (std::vector<std::unique_ptr<Command>>& commands, + DownloadEngine* e); }; } // namespace aria2 |
