From 006ae77a4e0b8f7c7d0ebb6553aac6327bc5923d Mon Sep 17 00:00:00 2001 From: ChenYing Kuo Date: Mon, 16 Dec 2024 14:45:43 +0800 Subject: [PATCH] Fix the coding style. Signed-off-by: ChenYing Kuo --- rmw_zenoh_cpp/src/detail/zenoh_utils.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp b/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp index af813e8f..207893b4 100644 --- a/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp +++ b/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp @@ -34,13 +34,14 @@ class ZenohSession final { public: ZenohSession(z_owned_session_t sess) - : inner_(sess) { + : inner_(sess) + { std::call_once(initFlag, [] { - // This atexit function should be triggered before ZenohSession destruction - // Refer to https://en.cppreference.com/w/cpp/utility/program/exit - atexit([] { - ZenohSession::is_exiting.store(true); - }); + // This atexit function should be triggered before ZenohSession destruction + // Refer to https://en.cppreference.com/w/cpp/utility/program/exit + atexit([] { + ZenohSession::is_exiting.store(true); + }); }); } const z_loaned_session_t * loan();