From c417afec27b9d9a387026a4bad93b3bfae74b3f9 Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Fri, 23 Jun 2023 16:06:15 +0200 Subject: [PATCH] Remove redundant call from QuickPublication Example Remove the call m_client.state(), it seems to be unnecessary (just like in the Quicksubscription example). Task-number: QTBUG-110893 Change-Id: I460f12f3d4b33388013cb8250149239a6b0f1c94 Reviewed-by: Oliver Eftevaag (cherry picked from commit 1f9e2bf463597e65c58daae0f705fc332f370e6f) Reviewed-by: Qt Cherry-pick Bot --- examples/mqtt/quickpublication/qmlmqttclient.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/mqtt/quickpublication/qmlmqttclient.cpp b/examples/mqtt/quickpublication/qmlmqttclient.cpp index b4cb3cd..35064b5 100644 --- a/examples/mqtt/quickpublication/qmlmqttclient.cpp +++ b/examples/mqtt/quickpublication/qmlmqttclient.cpp @@ -45,8 +45,6 @@ void QmlMqttClient::setPort(int newPort) return; } m_client.setPort(static_cast(newPort)); - - m_client.state(); } const QMqttClient::ClientState QmlMqttClient::state() const