Fixed tidy warning

This commit is contained in:
gabime 2019-08-28 19:00:35 +03:00
parent 2eb52cd047
commit d89baf4c5b
1 changed files with 1 additions and 3 deletions

View File

@ -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();