From adf3baf4bec6958683ce4d8cb7061f34f028fe6d Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Tue, 3 Dec 2024 00:00:00 +0000 Subject: [PATCH] style(video2x): fix incorrect variable name Signed-off-by: k4yt3x --- tools/video2x/src/video2x.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/video2x/src/video2x.cpp b/tools/video2x/src/video2x.cpp index 6be1bb6..a7fad8f 100644 --- a/tools/video2x/src/video2x.cpp +++ b/tools/video2x/src/video2x.cpp @@ -173,7 +173,7 @@ void set_spdlog_level(Video2xLogLevel log_level) { std::optional find_log_level_by_name(const StringType &log_level_name) { // Static map to store the mapping - static const std::unordered_map LogLevelMap = { + static const std::unordered_map log_level_map = { {STR("trace"), Video2xLogLevel::Trace}, {STR("debug"), Video2xLogLevel::Debug}, {STR("info"), Video2xLogLevel::Info}, @@ -192,8 +192,8 @@ std::optional find_log_level_by_name(const StringType &log_leve ); // Lookup the log level in the map - auto it = LogLevelMap.find(normalized_name); - if (it != LogLevelMap.end()) { + auto it = log_level_map.find(normalized_name); + if (it != log_level_map.end()) { return it->second; }