mirror of
https://github.com/qt/qtmqtt.git
synced 2026-10-25 16:16:26 +00:00
Specify Q_DISABLE_COPY where appropiate
This commit is contained in:
parent
a4a29ec436
commit
63867873f5
@ -117,6 +117,7 @@ public slots:
|
||||
void setPassword(QString password);
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QMqttClient)
|
||||
Q_DECLARE_PRIVATE(QMqttClient)
|
||||
};
|
||||
|
||||
|
||||
@ -105,6 +105,7 @@ public:
|
||||
bool m_ownTransport{false};
|
||||
QMqttClient *m_client{nullptr};
|
||||
private:
|
||||
Q_DISABLE_COPY(QMqttConnection)
|
||||
bool writePacketToTransport(const QMqttControlPacket &p);
|
||||
QMap<quint16, QSharedPointer<QMqttSubscription>> m_pendingSubscriptionAck;
|
||||
QMap<quint16, QSharedPointer<QMqttSubscription>> m_pendingUnsubscriptions;
|
||||
|
||||
@ -65,6 +65,7 @@ public slots:
|
||||
void unsubscribe();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QMqttSubscription)
|
||||
friend class QMqttConnection;
|
||||
friend class QMqttClient;
|
||||
explicit QMqttSubscription(QObject *parent = nullptr);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user