VERY experimental Nintendo Switch 2 emulator
C++
text_formatter: Avoid unnecessary string temporary creation in PrintMessage()
Lioncash025ab5f04fd3
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cppindex 05437c137d..6a0605c636 100644--- a/src/common/logging/text_formatter.cpp+++ b/src/common/logging/text_formatter.cpp@@ -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);}