diff options
| author | Eddy Pedroni <epedroni@pm.me> | 2025-11-16 16:18:23 +0100 |
|---|---|---|
| committer | Eddy Pedroni <epedroni@pm.me> | 2025-11-16 16:18:23 +0100 |
| commit | e68dfd37d0e131be03d0f852f0e5d128f28155b6 (patch) | |
| tree | 221ccb24dc79b63fac7230acd976942d57166b98 | |
| parent | e103295fb522d58d33a0edf4e0e725a9dade74bd (diff) | |
Formatting
| -rw-r--r-- | daemon/src/connection_manager.cpp | 10 |
1 files 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<Device_Connection>(id, name, submitter, callback); - } - refresh_devices(true, false); + m_connections[id] = std::make_unique<Device_Connection>(id, name, submitter, callback); } + refresh_devices(true, false); +} Connection_Manager::~Connection_Manager() = default; |
