summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/text')
-rw-r--r--tests/auto/corelib/text/qlocale/tst_qlocale.cpp2
-rw-r--r--tests/auto/corelib/text/qstring/tst_qstring.cpp2
-rw-r--r--tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
index 7d4cbbbcdd..7b69e2b8af 100644
--- a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
+++ b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
@@ -1265,7 +1265,7 @@ void tst_QLocale::strtod()
QFETCH(bool, ok);
QByteArray numData = num_str.toLatin1();
- const char *end = 0;
+ const char *end = nullptr;
bool actualOk = false;
double result = qstrtod(numData.constData(), &end, &actualOk);
diff --git a/tests/auto/corelib/text/qstring/tst_qstring.cpp b/tests/auto/corelib/text/qstring/tst_qstring.cpp
index 31f362888c..e63270bfe4 100644
--- a/tests/auto/corelib/text/qstring/tst_qstring.cpp
+++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp
@@ -4486,7 +4486,7 @@ void tst_QString::fromLatin1()
void tst_QString::fromUcs4()
{
- const char32_t *null = 0;
+ const char32_t *null = nullptr;
QString s;
s = QString::fromUcs4( null );
QVERIFY( s.isNull() );
diff --git a/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp b/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
index c1a208bc62..66dfe3ce58 100644
--- a/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
+++ b/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
@@ -261,7 +261,7 @@ void runScenario()
r = string P ba;
QCOMPARE(r, string);
- const char *zero = 0;
+ const char *zero = nullptr;
r = string P zero;
QCOMPARE(r, string);
r = zero P string;
@@ -300,7 +300,7 @@ void runScenario()
r2 = QByteArray("hello\0") P UTF8_LITERAL;
QCOMPARE(r, r2);
- const char *zero = 0;
+ const char *zero = nullptr;
r = ba P zero;
QCOMPARE(r, ba);
r = zero P ba;