aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-06-14 14:54:25 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-06-14 17:03:51 +0200
commit9272983e464713df9b768291d531c2d687345d74 (patch)
tree9c2ec29e6cc2fd57edbd0dca14b496763e58a399
parent70cf78af0aa55f68ade932ba3070a2f3dbe87181 (diff)
Remove deprecated QLatin1Literal
Change-Id: If2376d7d38689001bc93ebd962507b21a05a09f9 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--tests/auto/qcoapclient/tst_qcoapclient.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qcoapclient/tst_qcoapclient.cpp b/tests/auto/qcoapclient/tst_qcoapclient.cpp
index 523c3ae..5ca695c 100644
--- a/tests/auto/qcoapclient/tst_qcoapclient.cpp
+++ b/tests/auto/qcoapclient/tst_qcoapclient.cpp
@@ -224,7 +224,7 @@ void tst_QCoapClient::incorrectUrls()
else if (qstrcmp(QTest::currentDataTag(), "discover") == 0)
reply.reset(client.discover(url));
else {
- QString error = QLatin1Literal("Unrecognized method '") + QTest::currentDataTag() + "'";
+ QString error = QLatin1String("Unrecognized method '") + QTest::currentDataTag() + "'";
QFAIL(qPrintable(error));
}
@@ -275,7 +275,7 @@ void tst_QCoapClient::methods()
else if (qstrncmp(QTest::currentDataTag(), "delete", 6) == 0)
reply.reset(client.deleteResource(request));
else {
- QString error = QLatin1Literal("Unrecognized method '") + QTest::currentDataTag() + "'";
+ QString error = QLatin1String("Unrecognized method '") + QTest::currentDataTag() + "'";
QFAIL(qPrintable(error));
}
@@ -303,7 +303,7 @@ void tst_QCoapClient::methods()
QVERIFY(replyData.isEmpty());
QCOMPARE(reply->responseCode(), QtCoap::ResponseCode::Deleted);
} else {
- QString error = QLatin1Literal("Unrecognized method '") + QTest::currentDataTag() + "'";
+ QString error = QLatin1String("Unrecognized method '") + QTest::currentDataTag() + "'";
QFAIL(qPrintable(error));
}
}