Add the missing Q_DISABLE_COPY for public bearer classes.
QNetworkConfigurationManager and QNetworkSession are QObject, which should not be thought of as values that can be copied or assigned, but as unique identities. Change-Id: I6ff0124a613862c2b411da2df31f03d5033315a9 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
This commit is contained in:
parent
3664d3b842
commit
a4402fdc89
@ -90,6 +90,9 @@ Q_SIGNALS:
|
||||
void configurationChanged(const QNetworkConfiguration &config);
|
||||
void onlineStateChanged(bool isOnline);
|
||||
void updateCompleted();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QNetworkConfigurationManager)
|
||||
};
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QNetworkConfigurationManager::Capabilities)
|
||||
|
@ -129,6 +129,7 @@ protected:
|
||||
virtual void disconnectNotify(const char *signal);
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QNetworkSession)
|
||||
friend class QNetworkSessionPrivate;
|
||||
QNetworkSessionPrivate *d;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user