Commit e35414a0 authored by gabime's avatar gabime

Removed redundant casts to string_view

parent 0d0706a2
......@@ -96,7 +96,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
}
try
{
details::log_msg log_msg(&name_, lvl, static_cast<spdlog::string_view_t>(msg));
details::log_msg log_msg(&name_, lvl, msg);
sink_it_(log_msg);
}
SPDLOG_CATCH_AND_HANDLE
......
......@@ -38,7 +38,7 @@ class name_formatter : public flag_formatter
{
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
{
fmt_helper::append_string_view(string_view_t(*msg.logger_name), dest);
fmt_helper::append_string_view(*msg.logger_name, dest);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment