From 5e7e2dc585dc7a7e62d2b648b541e7f50c39ea5d Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 16 Feb 2023 10:37:01 -0800 Subject: Take boost error_code by reference By convention, we should be following boost here, and passing error_code by reference, not by value. This makes our code consistent, and removes the need for a copy in some cases. Signed-off-by: Ed Tanous Change-Id: Id42ea4a90b6685a84818b87d1506c11256b3b9ae --- http/http_client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http/http_client.hpp') diff --git a/http/http_client.hpp b/http/http_client.hpp index c902e1a66b..fff261fe46 100644 --- a/http/http_client.hpp +++ b/http/http_client.hpp @@ -401,7 +401,7 @@ class ConnectionInfo : public std::enable_shared_from_this } static void onTimeout(const std::weak_ptr& weakSelf, - const boost::system::error_code ec) + const boost::system::error_code& ec) { if (ec == boost::asio::error::operation_aborted) { -- cgit v1.2.3