Fixed clang-tidy warning about implicit conversion to string_view

This commit is contained in:
gabime
2018-10-19 17:12:02 +03:00
parent c2a9bf9974
commit 70bef682b0
5 changed files with 5 additions and 10 deletions

View File

@@ -404,7 +404,7 @@ class v_formatter final : public flag_formatter
{
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
{
fmt_helper::append_string_view(msg, dest);
fmt_helper::append_string_view(msg.payload, dest);
}
};
@@ -530,7 +530,7 @@ class full_formatter final : public flag_formatter
dest.push_back(']');
dest.push_back(' ');
// fmt_helper::append_string_view(msg.msg(), dest);
fmt_helper::append_string_view(msg, dest);
fmt_helper::append_string_view(msg.payload, dest);
}
private: