Pass boost error_code by reference
Id42ea4a90b6685a84818b87d1506c11256b3b9ae missed in couple of files
Tested: None.
Change-Id: I6cbd404132c34168cbc5901c9124ecc6ae6caacb
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
diff --git a/redfish-core/lib/fabric_adapters.hpp b/redfish-core/lib/fabric_adapters.hpp
index 5912710..1799159 100644
--- a/redfish-core/lib/fabric_adapters.hpp
+++ b/redfish-core/lib/fabric_adapters.hpp
@@ -45,7 +45,7 @@
sdbusplus::asio::getProperty<std::string>(
*crow::connections::systemBus, serviceName, fabricAdapterPath,
"xyz.openbmc_project.Inventory.Decorator.LocationCode", "LocationCode",
- [aResp](const boost::system::error_code ec,
+ [aResp](const boost::system::error_code& ec,
const std::string& property) {
if (ec)
{
@@ -71,7 +71,7 @@
*crow::connections::systemBus, serviceName, fabricAdapterPath,
"xyz.openbmc_project.Inventory.Decorator.Asset",
[fabricAdapterPath,
- aResp{aResp}](const boost::system::error_code ec,
+ aResp{aResp}](const boost::system::error_code& ec,
const dbus::utility::DBusPropertiesMap& propertiesList) {
if (ec)
{
@@ -129,7 +129,7 @@
sdbusplus::asio::getProperty<bool>(
*crow::connections::systemBus, serviceName, fabricAdapterPath,
"xyz.openbmc_project.Inventory.Item", "Present",
- [aResp](const boost::system::error_code ec, const bool present) {
+ [aResp](const boost::system::error_code& ec, const bool present) {
if (ec)
{
if (ec.value() != EBADR)
@@ -155,7 +155,7 @@
sdbusplus::asio::getProperty<bool>(
*crow::connections::systemBus, serviceName, fabricAdapterPath,
"xyz.openbmc_project.State.Decorator.OperationalStatus", "Functional",
- [aResp](const boost::system::error_code ec, const bool functional) {
+ [aResp](const boost::system::error_code& ec, const bool functional) {
if (ec)
{
if (ec.value() != EBADR)