From 1fcdd8c02132a07d6b1cb76206c6deb0ed94046f Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 5 Dec 2024 18:01:08 +0200 Subject: [PATCH] Fixed some tidy warnings --- include/spdlog/common.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 008b2366..90964cb5 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -5,7 +5,6 @@ #include #include -#include #include #include #include @@ -107,7 +106,7 @@ constexpr std::array short_level_names{"T", "D", return level_string_views.at(level_to_number(lvl)); } -[[nodiscard]] constexpr const std::string_view to_short_string_view(spdlog::level lvl) noexcept { +[[nodiscard]] constexpr std::string_view to_short_string_view(spdlog::level lvl) noexcept { return short_level_names.at(level_to_number(lvl)); } @@ -161,12 +160,11 @@ struct file_event_handlers { namespace details { // to_string_view - [[nodiscard]] constexpr spdlog::string_view_t to_string_view(const memory_buf_t &buf) noexcept { return spdlog::string_view_t{buf.data(), buf.size()}; } -[[nodiscard]] constexpr spdlog::string_view_t to_string_view(spdlog::string_view_t str) noexcept { return str; } +//[[nodiscard]] constexpr spdlog::string_view_t to_string_view(spdlog::string_view_t str) noexcept { return str; } template [[nodiscard]] constexpr fmt::basic_string_view to_string_view(fmt::basic_format_string fmt) noexcept {