Capture all boost::system::error_codes by ref
Capturing these possibly overloaded values by reference can avoid a copy
in some cases, and it's good to be consistent.
This change was made automatically by grep/sed.
Tested: Code compiles.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Iafeaca2a5dc52f39753b5a3880419d6bc943f81b
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 736b158..1cedf2d 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -2974,7 +2974,7 @@
if (protocolName == "SSH")
{
getPortNumber(socketPath, [asyncResp, protocolName](
- const boost::system::error_code ec1,
+ const boost::system::error_code& ec1,
int portNumber) {
if (ec1)
{