summaryrefslogtreecommitdiffstats
path: root/monitor/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/main.cpp')
-rw-r--r--monitor/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/main.cpp b/monitor/main.cpp
index c10efb9..5da6a5b 100644
--- a/monitor/main.cpp
+++ b/monitor/main.cpp
@@ -27,7 +27,7 @@ int main()
{
auto bus = sdbusplus::bus::new_default();
sd_event* events = nullptr;
- std::vector<Fan> fans;
+ std::vector<std::unique_ptr<Fan>> fans;
auto r = sd_event_default(&events);
if (r < 0)
@@ -45,7 +45,7 @@ int main()
for (const auto& fanDef : fanDefinitions)
{
- fans.emplace_back(bus, eventPtr, fanDef);
+ fans.emplace_back(std::make_unique<Fan>(bus, eventPtr, fanDef));
}
r = sd_event_loop(eventPtr.get());
OpenPOWER on IntegriCloud