Skip to content

Commit 4164338

Browse files
committed
Updating to pass a shared_ptr not by value based on feedback.
1 parent b6b27e8 commit 4164338

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Release/src/http/client/http_linux.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ namespace web { namespace http
472472
}
473473

474474
// Helper function to create ssl stream and set verification options.
475-
void reset_ssl_stream(std::shared_ptr<linux_client_request_context> &ctx)
475+
void reset_ssl_stream(const std::shared_ptr<linux_client_request_context> &ctx)
476476
{
477477
boost::asio::ssl::context sslContext(boost::asio::ssl::context::sslv23);
478478
sslContext.set_default_verify_paths();
@@ -519,7 +519,7 @@ namespace web { namespace http
519519
}
520520
}
521521

522-
void handle_connect(const boost::system::error_code& ec, tcp::resolver::iterator endpoints, std::shared_ptr<linux_client_request_context> ctx)
522+
void handle_connect(const boost::system::error_code& ec, tcp::resolver::iterator endpoints, const std::shared_ptr<linux_client_request_context> &ctx)
523523
{
524524
if (!ec)
525525
{
@@ -545,7 +545,7 @@ namespace web { namespace http
545545
}
546546
}
547547

548-
bool handle_cert_verification(bool preverified, boost::asio::ssl::verify_context &verifyCtx, std::shared_ptr<linux_client_request_context> requestCtx)
548+
bool handle_cert_verification(bool preverified, boost::asio::ssl::verify_context &verifyCtx, const std::shared_ptr<linux_client_request_context> &requestCtx)
549549
{
550550
// Unreferenced parameter on some platforms.
551551
requestCtx;

0 commit comments

Comments
 (0)