diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-09-11 12:22:18 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-09-11 11:13:40 +0000 |
commit | 65f5d9cecc605d46bdfa6b059e57154ec1497ab9 (patch) | |
tree | 55362d048e23e17d99cc1220799a117c5e707130 | |
parent | de7ecaa0c2bd90f26080a0a969832c92f9ea40d4 (diff) |
Prefer data members to be private
Change-Id: I2f0ab08c15c8e8127323733962638fbf3ad2ba7f
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/mqtt/qmqttconnectionproperties.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mqtt/qmqttconnectionproperties.h b/src/mqtt/qmqttconnectionproperties.h index 04e9de5..fb41853 100644 --- a/src/mqtt/qmqttconnectionproperties.h +++ b/src/mqtt/qmqttconnectionproperties.h @@ -66,7 +66,7 @@ public: void setCorrelationData(const QByteArray &correlation); void setUserProperties(const QMqttUserProperties &properties); -protected: +private: QSharedDataPointer<QMqttLastWillPropertiesData> data; }; @@ -98,7 +98,8 @@ public: void setAuthenticationMethod(const QString &authMethod); void setAuthenticationData(const QByteArray &authData); -protected: +private: + friend class QMqttConnection; QSharedDataPointer<QMqttConnectionPropertiesData> data; }; @@ -149,7 +150,6 @@ public: QString responseInformation() const; QString serverReference() const; - private: friend class QMqttConnection; QSharedDataPointer<QMqttServerConnectionPropertiesData> serverData; |