Utils: Replace iterator pairs with structured bindings
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: Idc780ccf9ce1404aa5fde14b8ebe5e7f089f0f36
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 66464e8..e247edd 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -176,9 +176,9 @@
for (const auto& pathPair : managedObj)
{
bool correctType = false;
- for (const auto& entry : pathPair.second)
+ for (const auto& [intf, cfg] : pathPair.second)
{
- if (boost::starts_with(entry.first, type))
+ if (boost::starts_with(intf, type))
{
correctType = true;
break;