diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/HttpServerResponseCommand.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/HttpServerResponseCommand.cc')
| -rw-r--r-- | src/HttpServerResponseCommand.cc | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/src/HttpServerResponseCommand.cc b/src/HttpServerResponseCommand.cc index 727166e3..4f55012b 100644 --- a/src/HttpServerResponseCommand.cc +++ b/src/HttpServerResponseCommand.cc @@ -44,27 +44,22 @@ namespace aria2 { -HttpServerResponseCommand::HttpServerResponseCommand -(cuid_t cuid, - const std::shared_ptr<HttpServer>& httpServer, - DownloadEngine* e, - const std::shared_ptr<SocketCore>& socket) - : AbstractHttpServerResponseCommand(cuid, httpServer, e, socket) -{} +HttpServerResponseCommand::HttpServerResponseCommand( + cuid_t cuid, const std::shared_ptr<HttpServer>& httpServer, + DownloadEngine* e, const std::shared_ptr<SocketCore>& socket) + : AbstractHttpServerResponseCommand(cuid, httpServer, e, socket) +{ +} -HttpServerResponseCommand::~HttpServerResponseCommand() -{} +HttpServerResponseCommand::~HttpServerResponseCommand() {} -void HttpServerResponseCommand::afterSend -(const std::shared_ptr<HttpServer>& httpServer, - DownloadEngine* e) +void HttpServerResponseCommand::afterSend( + const std::shared_ptr<HttpServer>& httpServer, DownloadEngine* e) { - if(httpServer->supportsPersistentConnection()) { - A2_LOG_INFO(fmt("CUID#%" PRId64 " - Persist connection.", - getCuid())); - e->addCommand - (make_unique<HttpServerCommand>(getCuid(), httpServer, e, - httpServer->getSocket())); + if (httpServer->supportsPersistentConnection()) { + A2_LOG_INFO(fmt("CUID#%" PRId64 " - Persist connection.", getCuid())); + e->addCommand(make_unique<HttpServerCommand>(getCuid(), httpServer, e, + httpServer->getSocket())); } } |
