diff options
author | hjk <hjk@qt.io> | 2018-11-20 16:59:30 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-11-20 17:15:28 +0000 |
commit | fe4883441f09da29076141b636f750fb11fdb659 (patch) | |
tree | da5f52dceb10ac585989c147d373a0c459c399ec | |
parent | a9e5d36f31878e6a7c1c79137b466a92168134ec (diff) |
Revert "Use const references for non-trivial parameters to signals"v5.12.0-rc2v5.12.0-rc1v5.12.0
This reverts commit ccd80bb35be42c6278de20d1b7942c0af0dc993f
which breaks binary compatibility.
Change-Id: Ica34959914db592ce5a138b461cdf1d2f5994c5c
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 438c075..92e114b 100644 --- a/src/mqtt/qmqttclient.h +++ b/src/mqtt/qmqttclient.h @@ -161,20 +161,20 @@ Q_SIGNALS: void pingResponseReceived(); void brokerSessionRestored(); - void hostnameChanged(const QString &hostname); + void hostnameChanged(QString hostname); void portChanged(quint16 port); - void clientIdChanged(const QString &clientId); + void clientIdChanged(QString clientId); void keepAliveChanged(quint16 keepAlive); void protocolVersionChanged(ProtocolVersion protocolVersion); void stateChanged(ClientState state); void errorChanged(ClientError error); - void usernameChanged(const QString &username); - void passwordChanged(const QString &password); + void usernameChanged(QString username); + void passwordChanged(QString password); void cleanSessionChanged(bool cleanSession); - void willTopicChanged(const QString &willTopic); + void willTopicChanged(QString willTopic); void willQoSChanged(quint8 willQoS); - void willMessageChanged(const QByteArray &willMessage); + void willMessageChanged(QByteArray willMessage); void willRetainChanged(bool willRetain); void authenticationRequested(const QMqttAuthenticationProperties &p); diff --git a/src/mqtt/qmqttsubscription.h b/src/mqtt/qmqttsubscription.h index 9f8d75f..8528ad8 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(const QMqttMessage &msg); + void messageReceived(QMqttMessage msg); public Q_SLOTS: void unsubscribe(); |