From 62bafc01bf4f4e2017d4a9e8d6d053f24ca30563 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Thu, 8 Sep 2022 17:35:35 -0500 Subject: clang-tidy: fix misc warnings The following error reports have started to be reported by clang-tidy: * readability-qualified-auto - add 'const' to `auto&` iterators * bugprone-use-after-move - add break in loop after element is found Signed-off-by: Patrick Williams Change-Id: I5314559f62f58aa032d4c74946b8e3e4ce6be808 --- include/openbmc_dbus_rest.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/openbmc_dbus_rest.hpp') diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp index d8a4e66d6f..95503d706e 100644 --- a/include/openbmc_dbus_rest.hpp +++ b/include/openbmc_dbus_rest.hpp @@ -1768,7 +1768,7 @@ inline void handleGet(const std::shared_ptr& asyncResp, } else { - for (auto& prop : properties.items()) + for (const auto& prop : properties.items()) { // if property name is empty, or // matches our search query, add it -- cgit v1.2.3