summaryrefslogtreecommitdiff
path: root/src/ChecksumCheckIntegrityEntry.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/ChecksumCheckIntegrityEntry.h
parentbb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff)
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/ChecksumCheckIntegrityEntry.h')
-rw-r--r--src/ChecksumCheckIntegrityEntry.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/ChecksumCheckIntegrityEntry.h b/src/ChecksumCheckIntegrityEntry.h
index cb1fcbe0..2c8ce041 100644
--- a/src/ChecksumCheckIntegrityEntry.h
+++ b/src/ChecksumCheckIntegrityEntry.h
@@ -44,7 +44,9 @@ class ChecksumCheckIntegrityEntry:public CheckIntegrityEntry
private:
bool redownload_;
public:
- ChecksumCheckIntegrityEntry(RequestGroup* requestGroup, Command* nextCommand = 0);
+ ChecksumCheckIntegrityEntry(RequestGroup* requestGroup,
+ std::unique_ptr<Command> nextCommand =
+ std::unique_ptr<Command>());
virtual ~ChecksumCheckIntegrityEntry();
@@ -52,11 +54,13 @@ public:
virtual void initValidator();
- virtual void onDownloadFinished(std::vector<Command*>& commands,
- DownloadEngine* e);
+ virtual void onDownloadFinished
+ (std::vector<std::unique_ptr<Command>>& commands,
+ DownloadEngine* e);
- virtual void onDownloadIncomplete(std::vector<Command*>& commands,
- DownloadEngine* e);
+ virtual void onDownloadIncomplete
+ (std::vector<std::unique_ptr<Command>>& commands,
+ DownloadEngine* e);
void setRedownload(bool redownload)
{