diff options
author | Ed Tanous <edtanous@google.com> | 2022-12-21 22:56:07 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-12-29 02:57:48 +0300 |
commit | e3eb3d6333030675b3b8585b713a80dcf7cce81c (patch) | |
tree | 5a6ef9f6f4f292fdef6277c018c1bc175c88e20a /redfish-core/lib | |
parent | 853c0dc5486bbab77b2d1f158152de93847c20d9 (diff) | |
download | bmcweb-e3eb3d6333030675b3b8585b713a80dcf7cce81c.tar.xz |
Add missing const in update service
Per cpp core guidelines, this type should be const.
Tested: Code compiles. Trivial const change. cppcheck no longer warns
on this line.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I04aae41701ba1203ff4a68f0b06df2459ee7bb2f
Diffstat (limited to 'redfish-core/lib')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index 224d48e430..faf8948c0c 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -74,7 +74,7 @@ static void m.read(objPath, interfacesProperties); BMCWEB_LOG_DEBUG << "obj path = " << objPath.str; - for (auto& interface : interfacesProperties) + for (const auto& interface : interfacesProperties) { BMCWEB_LOG_DEBUG << "interface = " << interface.first; |