diff options
-rw-r--r-- | src/mqtt/qmqttclient.h | 12 | ||||
-rw-r--r-- | src/mqtt/qmqttsubscription.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/mqtt/qmqttclient.h b/src/mqtt/qmqttclient.h index 92e114b..438c075 100644 --- a/src/mqtt/qmqttclient.h +++ b/src/mqtt/qmqttclient.h @@ -161,20 +161,20 @@ Q_SIGNALS: void pingResponseReceived(); void brokerSessionRestored(); - void hostnameChanged(QString hostname); + void hostnameChanged(const QString &hostname); void portChanged(quint16 port); - void clientIdChanged(QString clientId); + void clientIdChanged(const QString &clientId); void keepAliveChanged(quint16 keepAlive); void protocolVersionChanged(ProtocolVersion protocolVersion); void stateChanged(ClientState state); void errorChanged(ClientError error); - void usernameChanged(QString username); - void passwordChanged(QString password); + void usernameChanged(const QString &username); + void passwordChanged(const QString &password); void cleanSessionChanged(bool cleanSession); - void willTopicChanged(QString willTopic); + void willTopicChanged(const QString &willTopic); void willQoSChanged(quint8 willQoS); - void willMessageChanged(QByteArray willMessage); + void willMessageChanged(const QByteArray &willMessage); void willRetainChanged(bool willRetain); void authenticationRequested(const QMqttAuthenticationProperties &p); diff --git a/src/mqtt/qmqttsubscription.h b/src/mqtt/qmqttsubscription.h index 8528ad8..9f8d75f 100644 --- a/src/mqtt/qmqttsubscription.h +++ b/src/mqtt/qmqttsubscription.h @@ -75,7 +75,7 @@ public: Q_SIGNALS: void stateChanged(SubscriptionState state); void qosChanged(quint8); // only emitted when broker provides different QoS than requested - void messageReceived(QMqttMessage msg); + void messageReceived(const QMqttMessage &msg); public Q_SLOTS: void unsubscribe(); |