From d89baf4c5b8a0f840770db0549127645f5bbe72d Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 28 Aug 2019 19:00:35 +0300 Subject: [PATCH] Fixed tidy warning --- include/spdlog/details/fmt_helper.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index ebb747c6..5298e0a7 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -14,11 +14,9 @@ namespace fmt_helper { inline spdlog::string_view_t to_string_view(const memory_buf_t &buf) SPDLOG_NOEXCEPT { - return spdlog::string_view_t(buf.data(), buf.size()); + return spdlog::string_view_t{buf.data(), buf.size()}; } - - inline void append_string_view(spdlog::string_view_t view, memory_buf_t &dest) { auto *buf_ptr = view.data();