From 02cad96e3a83b0c9a01dbc87219c1b8b6681fa67 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 30 Jun 2022 16:50:15 -0700 Subject: Fix const correctness issues cppcheck correctly notes that a lot of variables in the new code can be const. Make most of them const. Tested: WIP Signed-off-by: Ed Tanous Change-Id: I8f37b6353fd707923f533e1d61c5b5419282bf23 --- redfish-core/lib/virtual_media.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'redfish-core/lib/virtual_media.hpp') diff --git a/redfish-core/lib/virtual_media.hpp b/redfish-core/lib/virtual_media.hpp index 69040a6170..17971dc092 100644 --- a/redfish-core/lib/virtual_media.hpp +++ b/redfish-core/lib/virtual_media.hpp @@ -172,9 +172,9 @@ inline void getVmResourceList(std::shared_ptr aResp, { BMCWEB_LOG_DEBUG << "Get available Virtual Media resources."; crow::connections::systemBus->async_method_call( - [name, - aResp{std::move(aResp)}](const boost::system::error_code ec, - dbus::utility::ManagedObjectType& subtree) { + [name, aResp{std::move(aResp)}]( + const boost::system::error_code ec, + const dbus::utility::ManagedObjectType& subtree) { if (ec) { BMCWEB_LOG_DEBUG << "DBUS response error"; @@ -917,9 +917,9 @@ inline void handleManagersVirtualMediaActionEject( BMCWEB_LOG_DEBUG << "GetObjectType: " << service; crow::connections::systemBus->async_method_call( - [resName, service, - asyncResp{asyncResp}](const boost::system::error_code ec, - dbus::utility::ManagedObjectType& subtree) { + [resName, service, asyncResp{asyncResp}]( + const boost::system::error_code ec, + const dbus::utility::ManagedObjectType& subtree) { if (ec) { BMCWEB_LOG_DEBUG << "DBUS response error"; -- cgit v1.2.3