diff options
Diffstat (limited to 'redfish-core/include/utils/fw_utils.hpp')
-rw-r--r-- | redfish-core/include/utils/fw_utils.hpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/redfish-core/include/utils/fw_utils.hpp b/redfish-core/include/utils/fw_utils.hpp index 5554d3bcf2..6a2ca14ed9 100644 --- a/redfish-core/include/utils/fw_utils.hpp +++ b/redfish-core/include/utils/fw_utils.hpp @@ -31,9 +31,11 @@ constexpr const char* bmcPurpose = * * @return void */ -inline void populateFirmwareInformation( - std::shared_ptr<AsyncResp> aResp, const std::string& fwVersionPurpose, - const std::string& activeVersionPropName, const bool populateLinkToImages) +inline void + populateFirmwareInformation(const std::shared_ptr<AsyncResp>& aResp, + const std::string& fwVersionPurpose, + const std::string& activeVersionPropName, + const bool populateLinkToImages) { // Used later to determine running (known on Redfish as active) FW images crow::connections::systemBus->async_method_call( @@ -334,8 +336,8 @@ inline std::string getRedfishFWHealth(const std::string& fwState) * * @return void */ -inline void getFwStatus(std::shared_ptr<AsyncResp> asyncResp, - const std::shared_ptr<std::string> swId, +inline void getFwStatus(const std::shared_ptr<AsyncResp>& asyncResp, + const std::shared_ptr<std::string>& swId, const std::string& dbusSvc) { BMCWEB_LOG_DEBUG << "getFwStatus: swId " << *swId << " svc " << dbusSvc; @@ -392,8 +394,8 @@ inline void getFwStatus(std::shared_ptr<AsyncResp> asyncResp, * @param[i,o] asyncResp Async response object * @param[i] fwId The firmware ID */ -inline void getFwUpdateableStatus(std::shared_ptr<AsyncResp> asyncResp, - const std::shared_ptr<std::string> fwId) +inline void getFwUpdateableStatus(const std::shared_ptr<AsyncResp>& asyncResp, + const std::shared_ptr<std::string>& fwId) { crow::connections::systemBus->async_method_call( [asyncResp, fwId](const boost::system::error_code ec, |