diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 00:30:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 15:56:08 +0900 |
| commit | 697c1008f715669cdd6c8e5b7610a20182375253 (patch) | |
| tree | ae942c82de22caa3dc6273ff257827f80711bfc1 /src/DownloadEngine.h | |
| parent | 6b397c812520016f7b2b22544f51bfddbcca8dfe (diff) | |
DownloadEngine: Use std::unique_ptr for checkIntegrityMan_, fileAllocationMan_
Diffstat (limited to 'src/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index 00f1aab2..29503fd7 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -169,8 +169,8 @@ private: std::deque<std::unique_ptr<Command>> commands_; std::shared_ptr<RequestGroupMan> requestGroupMan_; - std::shared_ptr<FileAllocationMan> fileAllocationMan_; - std::shared_ptr<CheckIntegrityMan> checkIntegrityMan_; + std::unique_ptr<FileAllocationMan> fileAllocationMan_; + std::unique_ptr<CheckIntegrityMan> checkIntegrityMan_; Option* option_; public: DownloadEngine(const std::shared_ptr<EventPoll>& eventPoll); @@ -211,19 +211,19 @@ public: void setRequestGroupMan(const std::shared_ptr<RequestGroupMan>& rgman); - const std::shared_ptr<FileAllocationMan>& getFileAllocationMan() const + const std::unique_ptr<FileAllocationMan>& getFileAllocationMan() const { return fileAllocationMan_; } - void setFileAllocationMan(const std::shared_ptr<FileAllocationMan>& faman); + void setFileAllocationMan(std::unique_ptr<FileAllocationMan> faman); - const std::shared_ptr<CheckIntegrityMan>& getCheckIntegrityMan() const + const std::unique_ptr<CheckIntegrityMan>& getCheckIntegrityMan() const { return checkIntegrityMan_; } - void setCheckIntegrityMan(const std::shared_ptr<CheckIntegrityMan>& ciman); + void setCheckIntegrityMan(std::unique_ptr<CheckIntegrityMan> ciman); Option* getOption() const { |
