From c22d393afd8363c5ed57a98687170a5a3ff3a42b Mon Sep 17 00:00:00 2001 From: Anton Kudryavtsev Date: Mon, 21 Aug 2023 18:25:07 +0300 Subject: [PATCH] qlogging: replace QSL with QL1SV Also while touching code, replace arg usage with QSB to prevent temp allocation Change-Id: I3573266dbee8a00ae917773c107b5df7774acb79 Reviewed-by: Thiago Macieira --- src/corelib/global/qlogging.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 991a197b530..a7a057fcd63 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1350,8 +1350,7 @@ void QMessagePattern::setPattern(const QString &pattern) inIf = false; } else { tokens[i] = emptyTokenC; - error += QStringLiteral("QT_MESSAGE_PATTERN: Unknown placeholder %1\n") - .arg(lexeme); + error += "QT_MESSAGE_PATTERN: Unknown placeholder "_L1 + lexeme + '\n'_L1; } } else { using UP = std::unique_ptr;