1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-16 01:37:58 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Gabi Melman
da3f3da92c
Update win_eventlog_sink.h 2020-03-22 02:30:15 +02:00
gabime
f0c35819bd Removed unneeded nullptr check 2020-03-22 02:17:48 +02:00
2 changed files with 2 additions and 6 deletions

View File

@ -20,10 +20,7 @@ inline spdlog::string_view_t to_string_view(const memory_buf_t &buf) SPDLOG_NOEX
inline void append_string_view(spdlog::string_view_t view, memory_buf_t &dest)
{
auto *buf_ptr = view.data();
if (buf_ptr != nullptr)
{
dest.append(buf_ptr, buf_ptr + view.size());
}
dest.append(buf_ptr, buf_ptr + view.size());
}
template<typename T>

View File

@ -175,8 +175,7 @@ struct eventlog
return EVENTLOG_ERROR_TYPE;
default:
// should be unreachable
throw_spdlog_ex(fmt::format("Unsupported log level {}", msg.level));
return EVENTLOG_INFORMATION_TYPE;
}
}