From 9df356b88b0fd397e22f70f6c105e2a38545fd62 Mon Sep 17 00:00:00 2001 From: lively-michael <135886546+lively-michael@users.noreply.github.com> Date: Fri, 8 Nov 2024 10:45:17 -0700 Subject: [PATCH] Remove excess `static` declarations. This is what happens when I copy-paste carelessly... --- src/tools/Log.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/Log.hpp b/src/tools/Log.hpp index cbe861d..0c4ace9 100644 --- a/src/tools/Log.hpp +++ b/src/tools/Log.hpp @@ -16,9 +16,9 @@ namespace tools { */ class Log { - static static std::shared_ptr initialize_logger() { + static std::shared_ptr initialize_logger() { - static std::shared_ptr instance = spdlog::stdout_color_st( "njoy" ); + std::shared_ptr instance = spdlog::stdout_color_st( "njoy" ); instance->set_pattern( "[%^%l%$] %v" ); #ifndef NDEBUG instance->set_level( spdlog::level::debug ); @@ -26,9 +26,9 @@ class Log { return instance; } - static static std::shared_ptr& logger() { + static std::shared_ptr& logger() { - static static std::shared_ptr instance = initialize_logger(); + static std::shared_ptr instance = initialize_logger(); return instance; }