Use auto for a complicated type
A perfect example for how much typing it can save.
Change-Id: I1826f5f7fe7c21aa39edd3759e748a567cf03a92
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/src/main.cpp b/src/main.cpp
index b1fbcbf..372b541 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -606,12 +606,7 @@
{
auto& iface_list = interface_map[obj_path.str];
- for (const std::pair<
- std::string,
- std::vector<std::pair<std::string,
- sdbusplus::message::variant<
- std::vector<Association>>>>>&
- interface_pair : interfaces_added)
+ for (const auto& interface_pair : interfaces_added)
{
iface_list[well_known].emplace(interface_pair.first);