From db1c747c354852e92926d620f61bac18caaf7b3f Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Thu, 13 Jun 2024 17:01:22 +0200 Subject: [PATCH] Add a static get to QHttpMultiPartPrivate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Needed for the tests of the move semantics of QFormDataBuilder. Change-Id: If4ea9a0d50addbbeaed1262517b58e7da82c0883 Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Marc Mutz (cherry picked from commit 2fb79421ee22649eab4ebf6a76d2835022ce43c8) Reviewed-by: Qt Cherry-pick Bot --- src/network/access/qhttpmultipart_p.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/network/access/qhttpmultipart_p.h b/src/network/access/qhttpmultipart_p.h index 12462849b6c..c2f23bb5951 100644 --- a/src/network/access/qhttpmultipart_p.h +++ b/src/network/access/qhttpmultipart_p.h @@ -16,6 +16,8 @@ // #include +#include + #include "QtCore/qshareddata.h" #include "qnetworkrequest_p.h" // for deriving QHttpPartPrivate from QNetworkHeadersPrivate #include "qhttpheadershelper_p.h" @@ -136,6 +138,12 @@ public: QHttpMultiPartPrivate(); ~QHttpMultiPartPrivate() override; + static QHttpMultiPartPrivate *get(QHttpMultiPart *message) { return message->d_func(); } + static const QHttpMultiPartPrivate *get(const QHttpMultiPart *message) + { + return message->d_func(); + } + QList parts; QByteArray boundary; QHttpMultiPart::ContentType contentType;