summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-02 13:47:29 +0000
committerlittleblack111 <littleblack11111@gmail.com>2025-04-07 16:32:07 +0800
commit6d97d1ba6e20bb4bb24ed56ae1c90ba362b48071 (patch)
treec8ca99d14f9f616e335eff0cbfa98ba903861185 /src
parent2b97b774663b44c86eb3f8029d690bbe9a433ec8 (diff)
style: clang-format
Diffstat (limited to 'src')
-rw-r--r--src/chatServer.cpp2
-rw-r--r--src/renderManager.cpp7
-rw-r--r--src/scroller.cpp2
-rw-r--r--src/sessionManager.cpp5
4 files changed, 9 insertions, 7 deletions
diff --git a/src/chatServer.cpp b/src/chatServer.cpp
index 5c60107..458fc09 100644
--- a/src/chatServer.cpp
+++ b/src/chatServer.cpp
@@ -27,7 +27,7 @@ void CChatServer::cleanup() {
g_pSessionManager->shutdownSessions();
g_pSessionManager.reset();
}
-
+
g_pChatManager.reset();
g_pServer.reset();
g_pCommandHandler.reset();
diff --git a/src/renderManager.cpp b/src/renderManager.cpp
index 84896a1..18b0664 100644
--- a/src/renderManager.cpp
+++ b/src/renderManager.cpp
@@ -4,8 +4,9 @@
CRenderManager::CRenderManager()
: screen(ftxui::ScreenInteractive::TerminalOutput()) {
if (std::atexit([]() {
- if (g_pRenderManager) g_pRenderManager->exitLoop();
- }))
+ if (g_pRenderManager)
+ g_pRenderManager->exitLoop();
+ }))
log(ERR, "Failed to register RenderManager atexit handler, will fallback to quick_exit after hang");
log(LOG, "RenderManager: initialized");
};
@@ -20,7 +21,7 @@ void CRenderManager::exitLoop() {
try {
screen.ExitLoopClosure()();
screen.Exit();
- } catch (const std::exception& e) {
+ } catch (const std::exception &e) {
log(WARN, "Exception in exitLoop: {}", e.what());
} catch (...) {
log(WARN, "Unknown exception in exitLoop");
diff --git a/src/scroller.cpp b/src/scroller.cpp
index 4dd8ec0..47f245b 100644
--- a/src/scroller.cpp
+++ b/src/scroller.cpp
@@ -78,7 +78,7 @@ class CScrollerBase : public ComponentBase {
Component Scroller(Component child) { // NOLINT
return Make<CScrollerBase>(std::move(child));
}
-} // namespace ftxui // NOLINT
+} // namespace ftxui
// Copyright 2021 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
diff --git a/src/sessionManager.cpp b/src/sessionManager.cpp
index 49d65b1..911ec60 100644
--- a/src/sessionManager.cpp
+++ b/src/sessionManager.cpp
@@ -17,8 +17,9 @@ void CSessionManager::shutdownSessions() {
CSessionManager::CSessionManager() {
if (std::atexit([]() {
- if (g_pSessionManager) g_pSessionManager->shutdownSessions();
- }))
+ if (g_pSessionManager)
+ g_pSessionManager->shutdownSessions();
+ }))
log(ERR, "Failed to register SessionManager atexit handler, will fallback to quick_exit after hang");
log(LOG, "SessionManager: initialized");