EntityManager: Destructure items when iterating newConfiguration
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ia0658d3068da8d9d0a2731c39d9583c849db6623
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index 04f3cc9..51266c3 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -1011,9 +1011,9 @@
it++;
}
}
- for (const auto& item : newConfiguration.items())
+ for (const auto& [_, device] : newConfiguration.items())
{
- logDeviceAdded(item.value());
+ logDeviceAdded(device);
}
inProgress = false;