diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 00:17:44 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 15:56:08 +0900 |
| commit | 6b397c812520016f7b2b22544f51bfddbcca8dfe (patch) | |
| tree | 6dcf656fb19da47833324111efcee62c66809365 /src/RequestGroup.h | |
| parent | c9e58779e1a30b32ea2f86e686211d901aca19f0 (diff) | |
Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry
Diffstat (limited to 'src/RequestGroup.h')
| -rw-r--r-- | src/RequestGroup.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RequestGroup.h b/src/RequestGroup.h index 42aacce6..412db256 100644 --- a/src/RequestGroup.h +++ b/src/RequestGroup.h @@ -210,7 +210,7 @@ public: return segmentMan_; } - std::shared_ptr<CheckIntegrityEntry> createCheckIntegrityEntry(); + std::unique_ptr<CheckIntegrityEntry> createCheckIntegrityEntry(); // Returns first bootstrap commands to initiate a download. // If this is HTTP/FTP download and file size is unknown, only 1 command @@ -387,7 +387,7 @@ public: void processCheckIntegrityEntry (std::vector<std::unique_ptr<Command>>& commands, - const std::shared_ptr<CheckIntegrityEntry>& entry, + std::unique_ptr<CheckIntegrityEntry> entry, DownloadEngine* e); // Initializes pieceStorage_ and segmentMan_. We guarantee that |
