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;