diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-05-14 14:10:33 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-15 10:10:05 +0200 |
commit | 10cd7743aa8c30fc3a5f8485ba4c4aad6bb5365e (patch) | |
tree | 4498b82fc104cf4e675241412d147de61147ed55 /tests/auto/qndefmessage | |
parent | de750dc7971b3dfda350b5602501b6215ef3da8d (diff) |
Utilize QStringLiteral where possible
The only exception are generated files and cases where
QLatin1String based overloads are used (e.g. during QString comparisons)
Change-Id: I6f36789fb8acb3b30c1dc1f8a920b118a979d74f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'tests/auto/qndefmessage')
-rw-r--r-- | tests/auto/qndefmessage/tst_qndefmessage.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/qndefmessage/tst_qndefmessage.cpp b/tests/auto/qndefmessage/tst_qndefmessage.cpp index 5813d0cd..a734b72e 100644 --- a/tests/auto/qndefmessage/tst_qndefmessage.cpp +++ b/tests/auto/qndefmessage/tst_qndefmessage.cpp @@ -202,8 +202,8 @@ void tst_QNdefMessage::tst_parse_data() QList<QNdefRecord> recordList; recordList.append(record); QTest::newRow("nfc-rtd text") << data << QNdefMessage(recordList) - << (QVariantList() << QLatin1String("Test String") - << QLatin1String("en")); + << (QVariantList() << QStringLiteral("Test String") + << QStringLiteral("en")); QCOMPARE(qHash(record), 3247259560LL); } @@ -235,7 +235,7 @@ void tst_QNdefMessage::tst_parse_data() << data << QNdefMessage(recordList) << (QVariantList() << QString::fromUtf8("\343\203\206\343\202\271\343\203\210\346\226" "\207\345\255\227\345\210\227") - << QLatin1String("ja")); + << QStringLiteral("ja")); QCOMPARE(qHash(record), 3407917933LL); } @@ -264,7 +264,7 @@ void tst_QNdefMessage::tst_parse_data() recordList.append(record); QTest::newRow("nfc-rtd uri http://qt.nokia.com/") << data << QNdefMessage(recordList) - << (QVariantList() << QUrl(QLatin1String("http://qt.nokia.com/"))); + << (QVariantList() << QUrl(QStringLiteral("http://qt.nokia.com/"))); QCOMPARE(qHash(record), 4030951038LL); } @@ -293,7 +293,7 @@ void tst_QNdefMessage::tst_parse_data() recordList.append(record); QTest::newRow("nfc-rtd uri abbrev http://qt.nokia.com/") << data << QNdefMessage(recordList) - << (QVariantList() << QUrl(QLatin1String("http://qt.nokia.com/"))); + << (QVariantList() << QUrl(QStringLiteral("http://qt.nokia.com/"))); QCOMPARE(qHash(record), 132405495LL); } @@ -322,7 +322,7 @@ void tst_QNdefMessage::tst_parse_data() recordList.append(record); QTest::newRow("nfc-rtd uri tel:+1234567890") << data << QNdefMessage(recordList) - << (QVariantList() << QUrl(QLatin1String("tel:+1234567890"))); + << (QVariantList() << QUrl(QStringLiteral("tel:+1234567890"))); QCOMPARE(qHash(record), 3757269174LL); } |