summaryrefslogtreecommitdiff
path: root/src/HttpServerBodyCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 23:44:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 23:44:38 +0900
commitd2ec57057e591810ebbb5febb34ae0cadf5068c5 (patch)
tree0c875806c34b3915ae3a131d3f7e3ee31e0ff123 /src/HttpServerBodyCommand.cc
parentfba7e7ee8b8339c9709c1fe9d07279df07781af3 (diff)
HttpServer: Use std::unique_ptr for lastBody_ and headerProcessor_
Diffstat (limited to 'src/HttpServerBodyCommand.cc')
-rw-r--r--src/HttpServerBodyCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc
index d782fe9f..dca204ec 100644
--- a/src/HttpServerBodyCommand.cc
+++ b/src/HttpServerBodyCommand.cc
@@ -210,7 +210,7 @@ bool HttpServerBodyCommand::execute()
switch(httpServer_->getRequestType()) {
case RPC_TYPE_XML: {
#ifdef ENABLE_XML_RPC
- auto dw = std::static_pointer_cast<rpc::XmlRpcDiskWriter>
+ auto dw = static_cast<rpc::XmlRpcDiskWriter*>
(httpServer_->getBody());
int error;
error = dw->finalize();
@@ -255,7 +255,7 @@ bool HttpServerBodyCommand::execute()
param.request.size(),
error);
} else {
- auto dw = std::static_pointer_cast<json::JsonDiskWriter>
+ auto dw = static_cast<json::JsonDiskWriter*>
(httpServer_->getBody());
error = dw->finalize();
if(error == 0) {