Skip to content
Snippets Groups Projects
Unverified Commit fe292573 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1442 from lioncash/format

text_formatter: Avoid unnecessary string temporary creation in PrintMessage()
parents f85f2b37 6f168262
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ std::string FormatLogMessage(const Entry& entry) {
}
void PrintMessage(const Entry& entry) {
auto str = FormatLogMessage(entry) + '\n';
const auto str = FormatLogMessage(entry).append(1, '\n');
fputs(str.c_str(), stderr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment