PerformScan: Be explicit about dbusObject type in run()
Drop this verbose indirection through the mapped_type property.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I5231745fac4992514b38f9302743d220d5c4cf80
diff --git a/src/PerformScan.cpp b/src/PerformScan.cpp
index 7b9ef1f..268e436 100644
--- a/src/PerformScan.cpp
+++ b/src/PerformScan.cpp
@@ -370,7 +370,7 @@
std::optional<std::string> replaceStr;
- MapperGetSubTreeResponse::mapped_type emptyInterfaces;
+ DBusObject emptyInterfaces;
DBusInterface emptyInterface;
emptyInterfaces.emplace(std::string{}, emptyInterface);
@@ -382,8 +382,7 @@
// interface, such as if it was just TRUE, then
// templateCharReplace will just get passed in an empty
// map.
- const MapperGetSubTreeResponse::mapped_type* dbusObject =
- &emptyInterfaces;
+ const DBusObject* dbusObject = &emptyInterfaces;
auto ifacesIt = allInterfaces.find(path);
if (ifacesIt != allInterfaces.end())