summaryrefslogtreecommitdiff
path: root/src/SequentialDispatcherCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 00:17:44 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-06 15:56:08 +0900
commit6b397c812520016f7b2b22544f51bfddbcca8dfe (patch)
tree6dcf656fb19da47833324111efcee62c66809365 /src/SequentialDispatcherCommand.h
parentc9e58779e1a30b32ea2f86e686211d901aca19f0 (diff)
Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry
Diffstat (limited to 'src/SequentialDispatcherCommand.h')
-rw-r--r--src/SequentialDispatcherCommand.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/SequentialDispatcherCommand.h b/src/SequentialDispatcherCommand.h
index 0b5a1580..8680629d 100644
--- a/src/SequentialDispatcherCommand.h
+++ b/src/SequentialDispatcherCommand.h
@@ -59,10 +59,11 @@ protected:
return e_;
}
public:
- SequentialDispatcherCommand(cuid_t cuid,
- const std::shared_ptr<SequentialPicker<T> >& picker,
- DownloadEngine* e):
- Command(cuid), picker_(picker), e_(e)
+ SequentialDispatcherCommand
+ (cuid_t cuid,
+ const std::shared_ptr<SequentialPicker<T>>& picker,
+ DownloadEngine* e)
+ : Command{cuid}, picker_{picker}, e_{e}
{
setStatusRealtime();
}
@@ -83,8 +84,7 @@ public:
}
protected:
- virtual std::unique_ptr<Command> createCommand
- (const std::shared_ptr<T>& entry) = 0;
+ virtual std::unique_ptr<Command> createCommand(T* entry) = 0;
};
} // namespace aria2