summaryrefslogtreecommitdiff
path: root/src/FileAllocationEntry.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 21:55:52 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 21:55:52 +0900
commitfa9f3fb5a3c8912a0a6880ffba9c72f4424ea044 (patch)
treedeb0b47b085a3a689bf386409734bfd3f72f57d2 /src/FileAllocationEntry.h
parentbb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff)
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/FileAllocationEntry.h')
-rw-r--r--src/FileAllocationEntry.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/FileAllocationEntry.h b/src/FileAllocationEntry.h
index 74a455d5..6811f56f 100644
--- a/src/FileAllocationEntry.h
+++ b/src/FileAllocationEntry.h
@@ -52,7 +52,9 @@ class FileAllocationEntry : public RequestGroupEntry, public ProgressAwareEntry
private:
std::shared_ptr<FileAllocationIterator> fileAllocationIterator_;
public:
- FileAllocationEntry(RequestGroup* requestGroup, Command* nextCommand = 0);
+ FileAllocationEntry(RequestGroup* requestGroup,
+ std::unique_ptr<Command> nextCommand =
+ std::unique_ptr<Command>());
~FileAllocationEntry();
@@ -64,8 +66,9 @@ public:
void allocateChunk();
- virtual void prepareForNextAction(std::vector<Command*>& commands,
- DownloadEngine* e) = 0;
+ virtual void prepareForNextAction
+ (std::vector<std::unique_ptr<Command>>& commands,
+ DownloadEngine* e) = 0;
};
} // namespace aria2