summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMate Barany <[email protected]>2024-07-09 16:16:21 +0200
committerMate Barany <[email protected]>2024-07-13 11:34:49 +0200
commit84bb06fc5699c88b6edc175cc3cf67d88307481b (patch)
tree2a46cbe15dbddfd66a7d3fed69b7536b58cb3e7b
parent9a41ea0934a745aa4e33280a2cf7a45372cb4073 (diff)
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.8 6.7 6.5 Change-Id: I5a76c9ea96275d569b3a036b1e1b791c57d0042f Reviewed-by: Marc Mutz <[email protected]>
-rw-r--r--src/network/access/qhttpnetworkrequest.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}