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.7 6.5 Change-Id: I6f0e789a8188ff141ec7e4e4eb8a1823e8eea0d2 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 13a04975fdc32ead6fe8dc78522e34de065c8908) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d4a70a1048
commit
cd732aaf36
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user