From 7af02a5860e765f743bbb132e3efb93c65c02a90 Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Tue, 9 Jul 2024 16:16:21 +0200 Subject: [PATCH] Call base class assignment operator in QHttpNetworkRequest::operator=() Address a "Do call the base class copy constructor or assignment operator, if you implement a copy constructor or assignment operator in a derived class." warning found by an Axivion scan. Call the assignment operator of the base class explicitly in the assignment operator of the derived class. Task-number: QTBUG-125026 Pick-to: 6.7 6.5 Change-Id: I5a76c9ea96275d569b3a036b1e1b791c57d0042f Reviewed-by: Marc Mutz (cherry picked from commit 84bb06fc5699c88b6edc175cc3cf67d88307481b) Reviewed-by: Qt Cherry-pick Bot --- src/network/access/qhttpnetworkrequest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/access/qhttpnetworkrequest.cpp b/src/network/access/qhttpnetworkrequest.cpp index 06cc0b44649..abbd7730ad6 100644 --- a/src/network/access/qhttpnetworkrequest.cpp +++ b/src/network/access/qhttpnetworkrequest.cpp @@ -262,6 +262,7 @@ void QHttpNetworkRequest::clearHeaders() QHttpNetworkRequest &QHttpNetworkRequest::operator=(const QHttpNetworkRequest &other) { + QHttpNetworkHeader::operator=(other); d = other.d; return *this; }