From d2ec57057e591810ebbb5febb34ae0cadf5068c5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 23 Jun 2013 23:44:38 +0900 Subject: HttpServer: Use std::unique_ptr for lastBody_ and headerProcessor_ --- src/HttpServerBodyCommand.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/HttpServerBodyCommand.cc') 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 + auto dw = static_cast (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 + auto dw = static_cast (httpServer_->getBody()); error = dw->finalize(); if(error == 0) { -- cgit