diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-05-14 14:34:34 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-15 14:57:31 +0200 |
commit | cb424d26eac75a14316726b4687758fd10c85563 (patch) | |
tree | 9d1b96301734b8c20652607823bb6dacb63afff8 /tests/auto/qplacesearchresult | |
parent | 8922ae1ef4f0cb01c15632dfe19ed514e0d49dbe (diff) | |
download | qtlocation-cb424d26eac75a14316726b4687758fd10c85563.tar.gz |
Use QStringLiteral whereever possible
This replaces a lot of old QLatin1String cases
Change-Id: I47aec711f5e00de68bde6c2c8ee09506f577cfd4
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'tests/auto/qplacesearchresult')
-rw-r--r-- | tests/auto/qplacesearchresult/tst_qplacesearchresult.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/auto/qplacesearchresult/tst_qplacesearchresult.cpp b/tests/auto/qplacesearchresult/tst_qplacesearchresult.cpp index 15dc82ba..346e15e7 100644 --- a/tests/auto/qplacesearchresult/tst_qplacesearchresult.cpp +++ b/tests/auto/qplacesearchresult/tst_qplacesearchresult.cpp @@ -65,17 +65,17 @@ void tst_QPlaceSearchResult::constructorTest() QVERIFY(result.title().isEmpty()); QVERIFY(result.icon().isEmpty()); - result.setTitle(QLatin1String("title")); + result.setTitle(QStringLiteral("title")); QPlaceIcon icon; QVariantMap parameters; - parameters.insert(QLatin1String("paramKey"), QLatin1String("paramValue")); + parameters.insert(QStringLiteral("paramKey"), QStringLiteral("paramValue")); icon.setParameters(parameters); result.setIcon(icon); QPlaceSearchResult result2(result); - QCOMPARE(result2.title(), QLatin1String("title")); - QCOMPARE(result2.icon().parameters().value(QLatin1String("paramKey")).toString(), - QLatin1String("paramValue")); + QCOMPARE(result2.title(), QStringLiteral("title")); + QCOMPARE(result2.icon().parameters().value(QStringLiteral("paramKey")).toString(), + QStringLiteral("paramValue")); QCOMPARE(result2, result); } @@ -84,8 +84,8 @@ void tst_QPlaceSearchResult::title() { QPlaceSearchResult result; QVERIFY(result.title().isEmpty()); - result.setTitle(QLatin1String("title")); - QCOMPARE(result.title(), QLatin1String("title")); + result.setTitle(QStringLiteral("title")); + QCOMPARE(result.title(), QStringLiteral("title")); result.setTitle(QString()); QVERIFY(result.title().isEmpty()); } @@ -96,7 +96,7 @@ void tst_QPlaceSearchResult::icon() QVERIFY(result.icon().isEmpty()); QPlaceIcon icon; QVariantMap iconParams; - iconParams.insert(QLatin1String("paramKey"), QLatin1String("paramValue")); + iconParams.insert(QStringLiteral("paramKey"), QStringLiteral("paramValue")); result.setIcon(icon); QCOMPARE(result.icon(), icon); result.setIcon(QPlaceIcon()); @@ -111,11 +111,11 @@ void tst_QPlaceSearchResult::operators() QVERIFY(result1 == result2); QVERIFY(!(result1 != result2)); - result1.setTitle(QLatin1String("title")); + result1.setTitle(QStringLiteral("title")); QVERIFY(!(result1 == result2)); QVERIFY(result1 != result2); - result2.setTitle(QLatin1String("title")); + result2.setTitle(QStringLiteral("title")); QVERIFY(result1 == result2); QVERIFY(!(result1 != result2)); } |