1
0
mirror of https://github.com/citra-emu/citra.git synced 2025-04-06 13:00:07 +00:00

Merge pull request from FearlessTobi/port-1442

Port : "Avoid unnecessary string temporary creation in PrintMessage()"
This commit is contained in:
Merry 2018-10-07 11:13:48 +01:00 committed by GitHub
commit aab56c2e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}