From 0c7c242d281acba772a8fef31ba4678c5fe3e14f Mon Sep 17 00:00:00 2001 From: snider Date: Thu, 16 Oct 2025 18:39:25 +0100 Subject: [PATCH] clang-tidy adjustments --- src/api/ApiServer.cpp | 4 ++-- src/api/ApiServer.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/ApiServer.cpp b/src/api/ApiServer.cpp index 53067d99..6dcdfd9f 100644 --- a/src/api/ApiServer.cpp +++ b/src/api/ApiServer.cpp @@ -22,7 +22,6 @@ #include "oatpp/network/Server.hpp" #include "oatpp-swagger/Controller.hpp" -#include #include "version.h" #include "common/command_line.h" @@ -135,7 +134,8 @@ void ApiServer::start() { m_server_thread = std::thread(&ApiServer::run, this); } -void ApiServer::stop() { +void ApiServer::stop() const +{ if (m_server) { m_server->stop(); } diff --git a/src/api/ApiServer.hpp b/src/api/ApiServer.hpp index b94d41c4..d046b69a 100644 --- a/src/api/ApiServer.hpp +++ b/src/api/ApiServer.hpp @@ -83,7 +83,7 @@ public: }; void start(); - void stop(); + void stop() const; void wait(); };