summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-05 16:48:58 +0200
committerGitHub <noreply@github.com>2018-10-05 16:48:58 +0200
commitfe292573defea6f786d2a547a381c83622bf0a38 (patch)
tree71ade98ce5512efe08b4a31ba446217cc215fa31 /src/common
parentMerge pull request #1415 from DarkLordZach/ips (diff)
parenttext_formatter: Avoid unnecessary string temporary creation in PrintMessage() (diff)
downloadyuzu-fe292573defea6f786d2a547a381c83622bf0a38.tar
yuzu-fe292573defea6f786d2a547a381c83622bf0a38.tar.gz
yuzu-fe292573defea6f786d2a547a381c83622bf0a38.tar.bz2
yuzu-fe292573defea6f786d2a547a381c83622bf0a38.tar.lz
yuzu-fe292573defea6f786d2a547a381c83622bf0a38.tar.xz
yuzu-fe292573defea6f786d2a547a381c83622bf0a38.tar.zst
yuzu-fe292573defea6f786d2a547a381c83622bf0a38.zip
Diffstat (limited to '')
-rw-r--r--src/common/logging/text_formatter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp
index 05437c137..6a0605c63 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);
}