diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 19:26:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 19:26:30 +0900 |
| commit | f83b0fcfa38cf80b15b275d48c131fa691d3006b (patch) | |
| tree | 464a9467114deb7dd3382ff92f1db6183ecd50bc /src/DownloadEngine.h | |
| parent | 162c138362955eede9ca8ec2e4b5e804688eda32 (diff) | |
Refactor MultiUrlRequestInfo ctor
StatCalc creation is moved to MultiUrlRequestInfo. The summary output
is done only when PREF_QUIET is false and it is always to
global::cout(), so remove summaryOut_ and just use global::cout() in
that case. Also use std::unique_ptr for statCalc_ in DownloadEngine.
Diffstat (limited to 'src/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index 4f05204d..efc9fcc4 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -82,7 +82,7 @@ private: std::shared_ptr<EventPoll> eventPoll_; - std::shared_ptr<StatCalc> statCalc_; + std::unique_ptr<StatCalc> statCalc_; int haltRequested_; @@ -235,7 +235,7 @@ public: option_ = op; } - void setStatCalc(const std::shared_ptr<StatCalc>& statCalc); + void setStatCalc(std::unique_ptr<StatCalc> statCalc); bool isHaltRequested() const { |
