diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2020-06-03 14:27:38 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2020-06-03 16:21:40 +0200 |
commit | 7477c29f474e461ed5003d18afe998c9915f7f0f (patch) | |
tree | edb7a806020d7b7ccd3e3822b84d3ace08578a19 | |
parent | 5ea20cc458733f7fb87cc1731791f3a94d5ea7d8 (diff) |
Prefer utf8 instead of local8Bit
Change-Id: I19343409b5b9b9deeba37b8ef6a8ac688ec74341
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | tests/auto/conformance/tst_conformance.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/conformance/tst_conformance.cpp b/tests/auto/conformance/tst_conformance.cpp index d093637..a95873e 100644 --- a/tests/auto/conformance/tst_conformance.cpp +++ b/tests/auto/conformance/tst_conformance.cpp @@ -178,9 +178,9 @@ void Tst_MqttConformance::retained_message_test() const QStringList topics{"Qt/conformance/tests/retain1", "Qt/conformance/tests/retain2", "Qt/conformance/tests2/retain1"}; const QString subTop{"Qt/conformance/#"}; // ### TODO: The test suite uses {"Qt/+/+"}; but we do not support ++ yet. - client.publish(topics[0], messages[0].toLocal8Bit(), 0, true); - client.publish(topics[1], messages[1].toLocal8Bit(), 1, true); - qint32 id = client.publish(topics[2], messages[2].toLocal8Bit(), 2, true); + client.publish(topics[0], messages[0].toUtf8(), 0, true); + client.publish(topics[1], messages[1].toUtf8(), 1, true); + qint32 id = client.publish(topics[2], messages[2].toUtf8(), 2, true); bool lastPublishSucceeded = false; connect(&client, &QMqttClient::messageSent, this, [id, &lastPublishSucceeded](qint32 recId) { if (recId == id) |