From e68dfd37d0e131be03d0f852f0e5d128f28155b6 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sun, 16 Nov 2025 16:18:23 +0100 Subject: Formatting --- daemon/src/connection_manager.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/src/connection_manager.cpp b/daemon/src/connection_manager.cpp index c3d260e..f608ce3 100644 --- a/daemon/src/connection_manager.cpp +++ b/daemon/src/connection_manager.cpp @@ -33,13 +33,13 @@ Connection_Manager::Connection_Manager(Device_Map const & device_map, Submitter m_submitter(submitter), m_connections{}, m_detector(std::bind(&Connection_Manager::detect_devices, this)) +{ + for (auto const & [name, id] : device_map) { - for (auto const & [name, id] : device_map) - { - m_connections[id] = std::make_unique(id, name, submitter, callback); - } - refresh_devices(true, false); + m_connections[id] = std::make_unique(id, name, submitter, callback); } + refresh_devices(true, false); +} Connection_Manager::~Connection_Manager() = default; -- cgit v1.2.3