summaryrefslogtreecommitdiff
path: root/redfish-core/lib/pcie_slots.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/pcie_slots.hpp')
-rw-r--r--redfish-core/lib/pcie_slots.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/lib/pcie_slots.hpp b/redfish-core/lib/pcie_slots.hpp
index 70efa13211..42c8bb1de0 100644
--- a/redfish-core/lib/pcie_slots.hpp
+++ b/redfish-core/lib/pcie_slots.hpp
@@ -71,7 +71,7 @@ inline pcie_slots::SlotTypes dbusSlotTypeToRf(const std::string& slotType)
inline void
onPcieSlotGetAllDone(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const boost::system::error_code ec,
+ const boost::system::error_code& ec,
const dbus::utility::DBusPropertiesMap& propertiesList)
{
if (ec)
@@ -150,7 +150,7 @@ inline void
inline void onMapperAssociationDone(
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
const std::string& chassisID, const std::string& pcieSlotPath,
- const std::string& connectionName, const boost::system::error_code ec,
+ const std::string& connectionName, const boost::system::error_code& ec,
const std::variant<std::vector<std::string>>& endpoints)
{
if (ec)
@@ -193,7 +193,7 @@ inline void onMapperAssociationDone(
sdbusplus::asio::getAllProperties(
*crow::connections::systemBus, connectionName, pcieSlotPath,
"xyz.openbmc_project.Inventory.Item.PCIeSlot",
- [asyncResp](const boost::system::error_code ec2,
+ [asyncResp](const boost::system::error_code& ec2,
const dbus::utility::DBusPropertiesMap& propertiesList) {
onPcieSlotGetAllDone(asyncResp, ec2, propertiesList);
});
@@ -202,7 +202,7 @@ inline void onMapperAssociationDone(
inline void
onMapperSubtreeDone(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
const std::string& chassisID,
- const boost::system::error_code ec,
+ const boost::system::error_code& ec,
const dbus::utility::MapperGetSubTreeResponse& subtree)
{
if (ec)