yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #1442 from lioncash/format

text_formatter: Avoid unnecessary string temporary creation in PrintMessage()
This commit is contained in:
bunnei 2018-10-05 10:48:58 -04:00 committed by GitHub
commit fe292573de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ std::string FormatLogMessage(const Entry& entry) {
} }
void PrintMessage(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); fputs(str.c_str(), stderr);
} }