diff options
author | hjk <hjk@qt.io> | 2018-09-12 12:11:31 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-09-12 10:50:03 +0000 |
commit | ccd80bb35be42c6278de20d1b7942c0af0dc993f (patch) | |
tree | d06c91ccd1c55da0e9808fc75353a178a2e4086e | |
parent | 7d2525e623b1d92555adfc816b576c399589df12 (diff) |
Use const references for non-trivial parameters to signalsv5.12.0-beta3v5.12.0-beta2v5.12.0-beta1v5.12.0-alpha1
Change-Id: I03149cbeebcd31dbfd297112b491869a2f104bae
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-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(); |