diff options
author | Ed Tanous <edtanous@google.com> | 2022-07-01 02:50:15 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-07-12 21:38:38 +0300 |
commit | 02cad96e3a83b0c9a01dbc87219c1b8b6681fa67 (patch) | |
tree | a2dab0f07fe50ed5708f3c6fea43b7d2af5419e7 /redfish-core/lib/certificate_service.hpp | |
parent | bb60f4ded18153718709e23dc1d648eb2ae13743 (diff) | |
download | bmcweb-02cad96e3a83b0c9a01dbc87219c1b8b6681fa67.tar.xz |
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 <edtanous@google.com>
Change-Id: I8f37b6353fd707923f533e1d61c5b5419282bf23
Diffstat (limited to 'redfish-core/lib/certificate_service.hpp')
-rw-r--r-- | redfish-core/lib/certificate_service.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp index 2fc606d645..a4ecbf048c 100644 --- a/redfish-core/lib/certificate_service.hpp +++ b/redfish-core/lib/certificate_service.hpp @@ -460,7 +460,7 @@ inline void requestRoutesCertificateActionGenerateCSR(App& app) sdbusplus::message::object_path csrObjectPath; m.read(csrObjectPath, interfacesProperties); BMCWEB_LOG_DEBUG << "CSR object added" << csrObjectPath.str; - for (auto& interface : interfacesProperties) + for (const auto& interface : interfacesProperties) { if (interface.first == "xyz.openbmc_project.Certs.CSR") { |