From cd732aaf3668a47ff6653850394056e4f887616a Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Thu, 4 Jul 2024 14:54:08 +0200 Subject: [PATCH] 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 (cherry picked from commit 13a04975fdc32ead6fe8dc78522e34de065c8908) Reviewed-by: Qt Cherry-pick Bot --- src/network/access/qhttpthreaddelegate_p.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/network/access/qhttpthreaddelegate_p.h b/src/network/access/qhttpthreaddelegate_p.h index 38e9fb4d782..3bd3dd2297c 100644 --- a/src/network/access/qhttpthreaddelegate_p.h +++ b/src/network/access/qhttpthreaddelegate_p.h @@ -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 downloadBuffer;