QHttpNetworkConnection: mark some methods as const
These get methods (sslContext and connectionType) are part of private API, so it's safe Change-Id: I6c2e14d5dbcbefc051d69985d1e9b490274ba7ef Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
981804752a
commit
bf42be723f
@ -1447,9 +1447,9 @@ QNetworkProxy QHttpNetworkConnection::transparentProxy() const
|
||||
}
|
||||
#endif
|
||||
|
||||
QHttpNetworkConnection::ConnectionType QHttpNetworkConnection::connectionType()
|
||||
QHttpNetworkConnection::ConnectionType QHttpNetworkConnection::connectionType() const
|
||||
{
|
||||
Q_D(QHttpNetworkConnection);
|
||||
Q_D(const QHttpNetworkConnection);
|
||||
return d->connectionType;
|
||||
}
|
||||
|
||||
@ -1484,9 +1484,9 @@ void QHttpNetworkConnection::setSslConfiguration(const QSslConfiguration &config
|
||||
d->channels[i].setSslConfiguration(config);
|
||||
}
|
||||
|
||||
std::shared_ptr<QSslContext> QHttpNetworkConnection::sslContext()
|
||||
std::shared_ptr<QSslContext> QHttpNetworkConnection::sslContext() const
|
||||
{
|
||||
Q_D(QHttpNetworkConnection);
|
||||
Q_D(const QHttpNetworkConnection);
|
||||
return d->sslContext;
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ public:
|
||||
|
||||
QHttpNetworkConnectionChannel *channels() const;
|
||||
|
||||
ConnectionType connectionType();
|
||||
ConnectionType connectionType() const;
|
||||
void setConnectionType(ConnectionType type);
|
||||
|
||||
QHttp2Configuration http2Parameters() const;
|
||||
@ -102,7 +102,7 @@ public:
|
||||
void setSslConfiguration(const QSslConfiguration &config);
|
||||
void ignoreSslErrors(int channel = -1);
|
||||
void ignoreSslErrors(const QList<QSslError> &errors, int channel = -1);
|
||||
std::shared_ptr<QSslContext> sslContext();
|
||||
std::shared_ptr<QSslContext> sslContext() const;
|
||||
void setSslContext(std::shared_ptr<QSslContext> context);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user