mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
Fixed tidy warning
This commit is contained in:
parent
2eb52cd047
commit
d89baf4c5b
@ -14,11 +14,9 @@ namespace fmt_helper {
|
|||||||
|
|
||||||
inline spdlog::string_view_t to_string_view(const memory_buf_t &buf) SPDLOG_NOEXCEPT
|
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)
|
inline void append_string_view(spdlog::string_view_t view, memory_buf_t &dest)
|
||||||
{
|
{
|
||||||
auto *buf_ptr = view.data();
|
auto *buf_ptr = view.data();
|
||||||
|
Loading…
Reference in New Issue
Block a user