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

pull/227/head
gabime 9 years ago
parent fe8fc8c638
commit 6760dcebc8

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

Loading…
Cancel
Save