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.hpp b/manager.hpp
index 17f950f..5c694b5 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -109,7 +109,7 @@
using HolderPtr = std::unique_ptr<details::holder::Base>;
using InterfaceComposite = std::map<std::string, HolderPtr>;
using ObjectReferences = std::map<std::string, InterfaceComposite>;
- using Events = std::map<const char *, Event>;
+ using Events = std::vector<Event>;
using MakerType = HolderPtr(*)(
sdbusplus::bus::bus &, const char *);
using Makers = std::map<std::string, MakerType>;