Initialize the isCompressed member variable in QhttpThreadDelegate

Address the "A constructor must initialize all data members of the
class" warning.

Also, move the isCompressed bool variable next to another bool variable
to save some space.

Found by an Axivion scan.

Task-number: QTBUG-125026
Pick-to: 6.8 6.7 6.5
Change-Id: I6f0e789a8188ff141ec7e4e4eb8a1823e8eea0d2
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Mate Barany 2024-07-04 14:54:08 +02:00 committed by Marc Mutz
parent 6c755dcdd9
commit 13a04975fd

View File

@ -80,6 +80,7 @@ public:
QString incomingReasonPhrase;
bool isPipeliningUsed;
bool isHttp2Used;
bool isCompressed = false;
qint64 incomingContentLength;
qint64 removedContentLength;
QNetworkReply::NetworkError incomingErrorCode;
@ -87,8 +88,6 @@ public:
QHttp1Configuration http1Parameters;
QHttp2Configuration http2Parameters;
bool isCompressed;
protected:
// The zerocopy download buffer, if used:
QSharedPointer<char> downloadBuffer;