From 8a4f3b1ba7ee06190b6d7253b74fa776f8a982df Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 16 Mar 2024 22:44:59 +0200 Subject: [PATCH] Small clean in registry impl --- src/details/registry.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/details/registry.cpp b/src/details/registry.cpp index 99a46114..0ba2f890 100644 --- a/src/details/registry.cpp +++ b/src/details/registry.cpp @@ -12,13 +12,10 @@ #ifdef _WIN32 #include "spdlog/sinks/wincolor_sink.h" #else - #include "spdlog/sinks/ansicolor_sink.h" - #endif #endif // SPDLOG_DISABLE_DEFAULT_LOGGER -#include #include #include #include @@ -79,7 +76,7 @@ namespace spdlog { std::shared_ptr registry::get(std::string_view logger_name) { std::lock_guard lock(logger_map_mutex_); for (const auto &[key, val]: loggers_) { - if (key == logger_name) { + if (logger_name == key) { return val; } }