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/WebSocketResponseCommand.cc | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/WebSocketResponseCommand.cc')
| -rw-r--r-- | src/WebSocketResponseCommand.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WebSocketResponseCommand.cc b/src/WebSocketResponseCommand.cc index ba6add52..245c14d7 100644 --- a/src/WebSocketResponseCommand.cc +++ b/src/WebSocketResponseCommand.cc @@ -45,9 +45,9 @@ namespace rpc { WebSocketResponseCommand::WebSocketResponseCommand (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) : AbstractHttpServerResponseCommand(cuid, httpServer, e, socket) {} @@ -55,10 +55,10 @@ WebSocketResponseCommand::~WebSocketResponseCommand() {} void WebSocketResponseCommand::afterSend -(const SharedHandle<HttpServer>& httpServer, +(const std::shared_ptr<HttpServer>& httpServer, DownloadEngine* e) { - SharedHandle<WebSocketSession> wsSession + std::shared_ptr<WebSocketSession> wsSession (new WebSocketSession(httpServer->getSocket(), getDownloadEngine())); WebSocketInteractionCommand* command = new WebSocketInteractionCommand(getCuid(), wsSession, e, |
