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 <thiago.macieira@intel.com>
This commit is contained in:
Anton Kudryavtsev 2023-08-21 18:25:07 +03:00 committed by Anton Kudryavtsev
parent 4660a230d5
commit c22d393afd

View File

@ -1350,8 +1350,7 @@ void QMessagePattern::setPattern(const QString &pattern)
inIf = false; inIf = false;
} else { } else {
tokens[i] = emptyTokenC; tokens[i] = emptyTokenC;
error += QStringLiteral("QT_MESSAGE_PATTERN: Unknown placeholder %1\n") error += "QT_MESSAGE_PATTERN: Unknown placeholder "_L1 + lexeme + '\n'_L1;
.arg(lexeme);
} }
} else { } else {
using UP = std::unique_ptr<char[]>; using UP = std::unique_ptr<char[]>;