summaryrefslogtreecommitdiff
path: root/src/HttpRequestConnectChain.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/HttpRequestConnectChain.h
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/HttpRequestConnectChain.h')
-rw-r--r--src/HttpRequestConnectChain.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/HttpRequestConnectChain.h b/src/HttpRequestConnectChain.h
index 6f0610f9..0a5cc9d9 100644
--- a/src/HttpRequestConnectChain.h
+++ b/src/HttpRequestConnectChain.h
@@ -49,17 +49,13 @@ struct HttpRequestConnectChain : public ControlChain<ConnectCommand*> {
virtual ~HttpRequestConnectChain() {}
virtual int run(ConnectCommand* t, DownloadEngine* e) CXX11_OVERRIDE
{
- std::shared_ptr<SocketRecvBuffer> socketRecvBuffer
- (new SocketRecvBuffer(t->getSocket()));
- std::shared_ptr<HttpConnection> httpConnection
- (new HttpConnection(t->getCuid(), t->getSocket(), socketRecvBuffer));
- auto c = make_unique<HttpRequestCommand>(t->getCuid(),
- t->getRequest(),
- t->getFileEntry(),
- t->getRequestGroup(),
- httpConnection,
- e,
- t->getSocket());
+ std::shared_ptr<SocketRecvBuffer> socketRecvBuffer(
+ new SocketRecvBuffer(t->getSocket()));
+ std::shared_ptr<HttpConnection> httpConnection(
+ new HttpConnection(t->getCuid(), t->getSocket(), socketRecvBuffer));
+ auto c = make_unique<HttpRequestCommand>(
+ t->getCuid(), t->getRequest(), t->getFileEntry(), t->getRequestGroup(),
+ httpConnection, e, t->getSocket());
c->setProxyRequest(t->getProxyRequest());
c->setStatus(Command::STATUS_ONESHOT_REALTIME);
e->setNoWait(true);