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 <a.samirh78@gmail.com>
(cherry picked from commit 80df23bc7b966c0c0f984ff20d5d0dc1e0b2e025)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Thiago Macieira 2024-01-12 09:39:41 -08:00 committed by Qt Cherry-pick Bot
parent 9962441bfd
commit 1bb0cc0923

View File

@ -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 { \