Commit 6760dceb authored by gabime's avatar gabime

remove unneeded strlen when writing eol at end of each line (pass size of eol to write)

parent fe8fc8c6
......@@ -622,7 +622,7 @@ inline void spdlog::pattern_formatter::format(details::log_msg& msg)
#if defined(SPDLOG_EOL)
msg.formatted << SPDLOG_EOL;
#else
msg.formatted << details::os::eol();
msg.formatted.write(details::os::eol(), details::os::eol_size());
#endif
}
catch(const fmt::FormatError& e)
......
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