summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qstring/tst_qstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/tools/qstring/tst_qstring.cpp')
-rw-r--r--tests/auto/corelib/tools/qstring/tst_qstring.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
index 5d29b9c67e..c9cadadd77 100644
--- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp
+++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
@@ -4541,17 +4541,16 @@ void tst_QString::nanAndInf()
QVERIFY(ok);
QVERIFY(d == -INFINITY);
- long l;
- l = QString("INF").toLong(&ok);
+ QString("INF").toLong(&ok);
QVERIFY(!ok);
- l = QString("INF").toLong(&ok, 36);
+ QString("INF").toLong(&ok, 36);
QVERIFY(ok);
- l = QString("INF0").toLong(&ok, 36);
+ QString("INF0").toLong(&ok, 36);
QVERIFY(ok);
- l = QString("0INF0").toLong(&ok, 36);
+ QString("0INF0").toLong(&ok, 36);
QVERIFY(ok);
}