From 1bb0cc0923196ab311369022eb95d0b4efd74ef6 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 12 Jan 2024 09:39:41 -0800 Subject: [PATCH] tst_QStringView: don't go through the QString constructor Amends d351a97e85e5ed8acd7ad1357ef76dc2e0ad639f. Pick-to: 6.6 6.5 6.2 Change-Id: I5201966b308e48989c06fffd17a9aa4d086e6039 Reviewed-by: Ahmad Samir (cherry picked from commit 80df23bc7b966c0c0f984ff20d5d0dc1e0b2e025) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/corelib/text/qstringview/tst_qstringview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/corelib/text/qstringview/tst_qstringview.cpp b/tests/auto/corelib/text/qstringview/tst_qstringview.cpp index 5adb8d52130..4d691674423 100644 --- a/tests/auto/corelib/text/qstringview/tst_qstringview.cpp +++ b/tests/auto/corelib/text/qstringview/tst_qstringview.cpp @@ -471,7 +471,7 @@ void tst_QStringView::arg() const { // nullness checks QCOMPARE(QStringView().arg(QStringView()), ""); - QCOMPARE(QStringView("%1").arg(QStringView()), ""); + QCOMPARE(QStringView(u"%1").arg(QStringView()), ""); #define CHECK1(pattern, arg1, expected) \ do { \