Use in place init of event data
Change-Id: Ia56acbeaa89423060e65e50eff8accffec5a4631
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/zone.cpp b/control/zone.cpp
index 784004e..7b2b31e 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -303,13 +303,10 @@
// Setup signal matches of the property for event
std::unique_ptr<EventData> eventData =
std::make_unique<EventData>(
- EventData
- {
std::get<groupPos>(event),
std::get<sigMatchPos>(sig),
std::get<sigHandlerPos>(sig),
std::get<actionsPos>(event)
- }
);
std::unique_ptr<sdbusplus::server::match::match> match = nullptr;
if (!std::get<sigMatchPos>(sig).empty())
@@ -332,13 +329,10 @@
// Associate event data with timer
std::unique_ptr<EventData> eventData =
std::make_unique<EventData>(
- EventData
- {
- std::get<groupPos>(event),
- "",
- nullptr,
- std::get<actionsPos>(event)
- }
+ std::get<groupPos>(event),
+ "",
+ nullptr,
+ std::get<actionsPos>(event)
);
std::unique_ptr<util::Timer> timer =
std::make_unique<util::Timer>(