summaryrefslogtreecommitdiff
path: root/redfish-core/include/utils/sw_utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/include/utils/sw_utils.hpp')
-rw-r--r--redfish-core/include/utils/sw_utils.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/include/utils/sw_utils.hpp b/redfish-core/include/utils/sw_utils.hpp
index aa3bd4f6a9..0b560f8c7f 100644
--- a/redfish-core/include/utils/sw_utils.hpp
+++ b/redfish-core/include/utils/sw_utils.hpp
@@ -53,7 +53,7 @@ inline void
"/xyz/openbmc_project/software/functional",
"xyz.openbmc_project.Association", "endpoints",
[aResp, swVersionPurpose, activeVersionPropName,
- populateLinkToImages](const boost::system::error_code ec,
+ populateLinkToImages](const boost::system::error_code& ec,
const std::vector<std::string>& functionalSw) {
BMCWEB_LOG_DEBUG << "populateSoftwareInformation enter";
if (ec)
@@ -139,7 +139,7 @@ inline void
obj.first, "xyz.openbmc_project.Software.Version",
[aResp, swId, runningImage, swVersionPurpose,
activeVersionPropName, populateLinkToImages](
- const boost::system::error_code ec3,
+ const boost::system::error_code& ec3,
const dbus::utility::DBusPropertiesMap&
propertiesList) {
if (ec3)
@@ -306,7 +306,7 @@ inline void getSwStatus(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
"/xyz/openbmc_project/software/" + *swId,
"xyz.openbmc_project.Software.Activation",
[asyncResp,
- swId](const boost::system::error_code errorCode,
+ swId](const boost::system::error_code& errorCode,
const dbus::utility::DBusPropertiesMap& propertiesList) {
if (errorCode)
{
@@ -359,7 +359,7 @@ inline void
*crow::connections::systemBus, "xyz.openbmc_project.ObjectMapper",
"/xyz/openbmc_project/software/updateable",
"xyz.openbmc_project.Association", "endpoints",
- [asyncResp, swId](const boost::system::error_code ec,
+ [asyncResp, swId](const boost::system::error_code& ec,
const std::vector<std::string>& objPaths) {
if (ec)
{