diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/HttpDownloadCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/HttpDownloadCommand.h')
| -rw-r--r-- | src/HttpDownloadCommand.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/HttpDownloadCommand.h b/src/HttpDownloadCommand.h index 491933aa..486da7b9 100644 --- a/src/HttpDownloadCommand.h +++ b/src/HttpDownloadCommand.h @@ -44,20 +44,20 @@ class HttpConnection; class HttpDownloadCommand : public DownloadCommand { private: - SharedHandle<HttpResponse> httpResponse_; - SharedHandle<HttpConnection> httpConnection_; + std::shared_ptr<HttpResponse> httpResponse_; + std::shared_ptr<HttpConnection> httpConnection_; protected: virtual bool prepareForNextSegment(); virtual int64_t getRequestEndOffset() const; public: HttpDownloadCommand(cuid_t cuid, - const SharedHandle<Request>& req, - const SharedHandle<FileEntry>& fileEntry, + const std::shared_ptr<Request>& req, + const std::shared_ptr<FileEntry>& fileEntry, RequestGroup* requestGroup, - const SharedHandle<HttpResponse>& httpResponse, - const SharedHandle<HttpConnection>& httpConnection, + const std::shared_ptr<HttpResponse>& httpResponse, + const std::shared_ptr<HttpConnection>& httpConnection, DownloadEngine* e, - const SharedHandle<SocketCore>& s); + const std::shared_ptr<SocketCore>& s); virtual ~HttpDownloadCommand(); }; |
