PerformProbe: Invoke PerformScan::updateSystemConfiguration() directly
Drop the lambda we previously required.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I4cfa0a8a026226a6a4d77191045da43c5b4a30a7
diff --git a/src/PerformScan.cpp b/src/PerformScan.cpp
index 47b96f8..c81557f 100644
--- a/src/PerformScan.cpp
+++ b/src/PerformScan.cpp
@@ -625,13 +625,7 @@
// destroyed too early
auto thisRef = shared_from_this();
auto probePointer = std::make_shared<PerformProbe>(
- probeCommand, thisRef,
- [thisRef, recordRef,
- probeName](FoundDevices& foundDevices,
- const MapperGetSubTreeResponse& dbusSubtree) {
- thisRef->updateSystemConfiguration(recordRef, probeName,
- foundDevices, dbusSubtree);
- });
+ recordRef, probeCommand, probeName, thisRef);
// parse out dbus probes by discarding other probe types, store in a
// map