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/HttpServerBodyCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/HttpServerBodyCommand.h')
| -rw-r--r-- | src/HttpServerBodyCommand.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/HttpServerBodyCommand.h b/src/HttpServerBodyCommand.h index 46c86919..34a1119d 100644 --- a/src/HttpServerBodyCommand.h +++ b/src/HttpServerBodyCommand.h @@ -36,7 +36,9 @@ #define D_HTTP_SERVER_BODY_COMMAND_H #include "Command.h" -#include "SharedHandle.h" + +#include <memory> + #include "TimerA2.h" #include "ValueBase.h" #include "RpcResponse.h" @@ -50,8 +52,8 @@ class HttpServer; class HttpServerBodyCommand : public Command { private: DownloadEngine* e_; - SharedHandle<SocketCore> socket_; - SharedHandle<HttpServer> httpServer_; + std::shared_ptr<SocketCore> socket_; + std::shared_ptr<HttpServer> httpServer_; Timer timeoutTimer_; bool writeCheck_; @@ -59,7 +61,7 @@ private: (const std::string& httpStatus, int code, const std::string& message, - const SharedHandle<ValueBase>& id, + const std::shared_ptr<ValueBase>& id, const std::string& callback); void sendJsonRpcResponse (const rpc::RpcResponse& res, @@ -71,9 +73,9 @@ private: void updateWriteCheck(); public: HttpServerBodyCommand(cuid_t cuid, - const SharedHandle<HttpServer>& httpServer, + const std::shared_ptr<HttpServer>& httpServer, DownloadEngine* e, - const SharedHandle<SocketCore>& socket); + const std::shared_ptr<SocketCore>& socket); virtual ~HttpServerBodyCommand(); |
