Use a vector for events
The events structure is never inserted into, searched and
the keys aren't used. This was a poor choice of data
structure.
Change-Id: I46135e9128b3380712234e86674e53af10b37053
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/manager.cpp b/manager.cpp
index 00bf833..cf3c59c 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -66,13 +66,13 @@
std::make_unique<SigArg>(
std::make_tuple(
this,
- &x.second)));
+ &x)));
// Register our callback and the context for
// each event.
_matches.emplace_back(
sdbusplus::server::match::match(
_bus,
- std::get<0>(x.second),
+ std::get<0>(x),
details::_signal,
_sigargs.back().get()));
}