Skip to content

Commit d896941

Browse files
committed
Adding const in a few places.
1 parent 554f9ca commit d896941

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Release/src/http/client/http_linux.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ namespace web { namespace http
297297
}
298298
}
299299

300-
linux_client_request_context(std::shared_ptr<_http_client_communicator> &client, http_request request, std::shared_ptr<linux_connection> &connection);
300+
linux_client_request_context(
301+
const std::shared_ptr<_http_client_communicator> &client,
302+
http_request request,
303+
const std::shared_ptr<linux_connection> &connection);
301304

302305
protected:
303306
virtual void cleanup()
@@ -873,7 +876,7 @@ namespace web { namespace http
873876
}
874877
}
875878

876-
void read_headers(std::shared_ptr<linux_client_request_context> ctx)
879+
void read_headers(const std::shared_ptr<linux_client_request_context> &ctx)
877880
{
878881
ctx->m_needChunked = false;
879882
std::istream response_stream(&ctx->m_body_buf);
@@ -1137,8 +1140,7 @@ namespace web { namespace http
11371140
}
11381141
else
11391142
{
1140-
writeBuffer.sync()
1141-
.then([ctx](pplx::task<void> op)
1143+
writeBuffer.sync().then([ctx](pplx::task<void> op)
11421144
{
11431145
try
11441146
{
@@ -1172,9 +1174,9 @@ namespace web { namespace http
11721174
}
11731175

11741176
linux_client_request_context::linux_client_request_context(
1175-
std::shared_ptr<_http_client_communicator> &client,
1177+
const std::shared_ptr<_http_client_communicator> &client,
11761178
http_request request,
1177-
std::shared_ptr<linux_connection> &connection)
1179+
const std::shared_ptr<linux_connection> &connection)
11781180
: request_context(client, request)
11791181
, m_known_size(0)
11801182
, m_current_size(0)

0 commit comments

Comments
 (0)