use static_cast<string_view> instead of ctor in logger impl
This commit is contained in:
parent
cadb3d7da2
commit
99e23b41eb
@ -96,7 +96,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
|||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
details::log_msg log_msg(&name_, lvl, spdlog::string_view_t(msg));
|
details::log_msg log_msg(&name_, lvl, static_cast<spdlog::string_view_t>(msg));
|
||||||
sink_it_(log_msg);
|
sink_it_(log_msg);
|
||||||
}
|
}
|
||||||
SPDLOG_CATCH_AND_HANDLE
|
SPDLOG_CATCH_AND_HANDLE
|
||||||
|
Loading…
Reference in New Issue
Block a user