QHttpNetworkConnection: make channels member const

They are set in the ctor and should not change afterwards, so make
it explicit by making them const.

Task-number: QTBUG-102855
Change-Id: Ie1838a532f89d9cc0c3ae16521fa1829b5cdff61
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
bb10
Mårten Nordheim 2024-04-08 16:40:41 +02:00 committed by Marc Mutz
parent d849cb80a4
commit 0a5641e72c
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ public:
// The total number of channels we reserved:
const int channelCount;
QTimer delayedConnectionTimer;
QHttpNetworkConnectionChannel *channels; // parallel connections to the server
QHttpNetworkConnectionChannel * const channels; // parallel connections to the server
bool shouldEmitChannelError(QIODevice *socket);
qint64 uncompressedBytesAvailable(const QHttpNetworkReply &reply) const;