summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-12-21 22:56:07 +0300
committerEd Tanous <ed@tanous.net>2022-12-29 02:57:48 +0300
commite3eb3d6333030675b3b8585b713a80dcf7cce81c (patch)
tree5a6ef9f6f4f292fdef6277c018c1bc175c88e20a /redfish-core/lib
parent853c0dc5486bbab77b2d1f158152de93847c20d9 (diff)
downloadbmcweb-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.hpp2
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;