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/qplacematchrequest | |
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/qplacematchrequest')
-rw-r--r-- | tests/auto/qplacematchrequest/tst_qplacematchrequest.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/auto/qplacematchrequest/tst_qplacematchrequest.cpp b/tests/auto/qplacematchrequest/tst_qplacematchrequest.cpp index 90aa8e31..9efab1ad 100644 --- a/tests/auto/qplacematchrequest/tst_qplacematchrequest.cpp +++ b/tests/auto/qplacematchrequest/tst_qplacematchrequest.cpp @@ -70,13 +70,13 @@ void tst_QPlaceMatchRequest::constructorTest() { QPlaceMatchRequest request; QVariantMap params; - params.insert(QLatin1String("key"), QLatin1String("val")); + params.insert(QStringLiteral("key"), QStringLiteral("val")); QPlace place1; - place1.setName(QLatin1String("place1")); + place1.setName(QStringLiteral("place1")); QPlace place2; - place2.setName(QLatin1String("place2")); + place2.setName(QStringLiteral("place2")); QList<QPlace> places; places << place1 << place2; @@ -96,10 +96,10 @@ void tst_QPlaceMatchRequest::placesTest() QCOMPARE(request.places().count(), 0); QPlace place1; - place1.setName(QLatin1String("place1")); + place1.setName(QStringLiteral("place1")); QPlace place2; - place2.setName(QLatin1String("place2")); + place2.setName(QStringLiteral("place2")); QList<QPlace> places; places << place1 << place2; @@ -117,12 +117,12 @@ void tst_QPlaceMatchRequest::resultsTest() QCOMPARE(request.places().count(), 0); QPlace place1; - place1.setName(QLatin1String("place1")); + place1.setName(QStringLiteral("place1")); QPlaceResult result1; result1.setPlace(place1); QPlace place2; - place2.setName(QLatin1String("place2")); + place2.setName(QStringLiteral("place2")); QPlaceResult result2; result2.setPlace(place2); @@ -145,7 +145,7 @@ void tst_QPlaceMatchRequest::parametersTest() QVERIFY(request.parameters().isEmpty()); QVariantMap params; - params.insert(QLatin1String("key"), QLatin1String("value")); + params.insert(QStringLiteral("key"), QStringLiteral("value")); request.setParameters(params); QCOMPARE(request.parameters(), params); @@ -155,13 +155,13 @@ void tst_QPlaceMatchRequest::clearTest() { QPlaceMatchRequest request; QVariantMap params; - params.insert(QLatin1String("key"), QLatin1String("value")); + params.insert(QStringLiteral("key"), QStringLiteral("value")); QPlace place1; - place1.setName(QLatin1String("place1")); + place1.setName(QStringLiteral("place1")); QPlace place2; - place2.setName(QLatin1String("place2")); + place2.setName(QStringLiteral("place2")); QList<QPlace> places; places << place1 << place2; |