automatic clang-tidy fixes
Apply fixes automatically generated by clang-tidy when ran with
clang-tidy-20. These appear to be optimization fixes around usage
of std::map and/or std::unordered_map.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibe1ae1518cb98aa7dbc38cc796ec6ebd6c68743a
diff --git a/src/intel-cpu/IntelCPUSensorMain.cpp b/src/intel-cpu/IntelCPUSensorMain.cpp
index 3326115..eede838 100644
--- a/src/intel-cpu/IntelCPUSensorMain.cpp
+++ b/src/intel-cpu/IntelCPUSensorMain.cpp
@@ -751,8 +751,7 @@
}
}
- if (inventoryIfaces.find(name) == inventoryIfaces.end() &&
- present)
+ if (!inventoryIfaces.contains(name) && present)
{
auto iface = objectServer.add_interface(
cpuInventoryPath + std::string("/") + name,