From a3a1657fb864bfcdc52b3aa011a25b2dec219e7e Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Mon, 20 Oct 2025 21:15:47 +0200 Subject: [PATCH] Lint --- server/simulators.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/server/simulators.cpp b/server/simulators.cpp index aa6373d..0dadce4 100644 --- a/server/simulators.cpp +++ b/server/simulators.cpp @@ -16,7 +16,7 @@ Simulators::Simulators(uint16_t port, QString can_dev, QString uart_dev, QObject { m_server->moveToThread(m_server_thread); m_server_thread->start(); - //TODO: Cleanup this code and make it possible to add multiple com devices + // TODO: Cleanup this code and make it possible to add multiple com devices if (!can_dev.isEmpty()) { m_can_wrapper->connect_to_dev(can_dev); @@ -133,13 +133,16 @@ void Simulators::switch_simulator(std::string name) } this->m_current_simulator = name; - connect(m_simulators.at(m_current_simulator).get(), &Simulator_base::sim_changed, this, - [this] { - auto json = changed_UI_items(); - if (!json.empty()) { - m_server->broadcast(QString::fromStdString(json.dump())); - } - }, Qt::QueuedConnection); + connect( + m_simulators.at(m_current_simulator).get(), &Simulator_base::sim_changed, this, + [this] { + auto json = changed_UI_items(); + if (!json.empty()) + { + m_server->broadcast(QString::fromStdString(json.dump())); + } + }, + Qt::QueuedConnection); this->start(); }