mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-02 14:24:23 +01:00
Merge pull request #4316 from FearlessTobi/port-1442
Port yuzu-emu/yuzu#1442: "Avoid unnecessary string temporary creation in PrintMessage()"
This commit is contained in:
commit
aab56c2e20
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user