summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorWilly Tu <wltu@google.com>2023-06-13 01:18:45 +0300
committerWilly Tu <wltu@google.com>2023-06-13 01:19:28 +0300
commitd4b054c15150535c8edaa1619a9e52c8148d7e19 (patch)
treee7d87de41ecaa1bdb46742d8e4d5803b28927ac1 /redfish-core/lib
parentb33a4327cb87c7e1a71e6e0d49823111a72181a3 (diff)
downloadbmcweb-d4b054c15150535c8edaa1619a9e52c8148d7e19.tar.xz
chassis: Pass ec by reference
Remove passing ec by value for getProperty. Change-Id: I9070ca7035fead14faa236eb1b17937ffe13045b Signed-off-by: Willy Tu <wltu@google.com>
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/chassis.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 8ac7caa77c..b27a790e33 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -58,7 +58,7 @@ inline void getStorageLink(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
sdbusplus::asio::getProperty<std::vector<std::string>>(
*crow::connections::systemBus, "xyz.openbmc_project.ObjectMapper",
(path / "storage").str, "xyz.openbmc_project.Association", "endpoints",
- [asyncResp](const boost::system::error_code ec,
+ [asyncResp](const boost::system::error_code& ec,
const std::vector<std::string>& storageList) {
if (ec)
{