From 3b7f278d38582d100b8a5da6b790d765e52420eb Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 14 May 2020 14:43:01 +0200 Subject: [PATCH] tst_qstringref: remove some wtf? As best as I can guess, this used the QString::operator=(char), which I locally removed. Before that lands in Qt, remove this ... wtf? Pick-to: 5.15 Change-Id: Ie083fe69500d6b5b633416f89f5dd1d7068c20b2 Reviewed-by: Giuseppe D'Angelo Reviewed-by: Edward Welbourne --- tests/auto/corelib/text/qstringref/tst_qstringref.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/corelib/text/qstringref/tst_qstringref.cpp b/tests/auto/corelib/text/qstringref/tst_qstringref.cpp index 25f56a5df0..7eea1db7c8 100644 --- a/tests/auto/corelib/text/qstringref/tst_qstringref.cpp +++ b/tests/auto/corelib/text/qstringref/tst_qstringref.cpp @@ -1188,7 +1188,7 @@ void tst_QStringRef::toNum() QVERIFY(ok); QString::number(d + 1e32, 'e', 17).leftRef(-1).toFloat(&ok); QVERIFY(!ok); - a = QString::number(-d, 'e', 17).leftRef(-1).toFloat(&ok); + QString::number(-d, 'e', 17).leftRef(-1).toFloat(&ok); QVERIFY(ok); QString::number(-d - 1e32, 'e', 17).leftRef(-1).toFloat(&ok); QVERIFY(!ok);