Add a static get to QHttpMultiPartPrivate
Needed for the tests of the move semantics of QFormDataBuilder. Change-Id: If4ea9a0d50addbbeaed1262517b58e7da82c0883 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 2fb79421ee22649eab4ebf6a76d2835022ce43c8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
34f6210bb6
commit
db1c747c35
@ -16,6 +16,8 @@
|
||||
//
|
||||
|
||||
#include <QtNetwork/private/qtnetworkglobal_p.h>
|
||||
#include <QtNetwork/qhttpmultipart.h>
|
||||
|
||||
#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<QHttpPart> parts;
|
||||
QByteArray boundary;
|
||||
QHttpMultiPart::ContentType contentType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user