summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhttpmultipart_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/access/qhttpmultipart_p.h')
-rw-r--r--src/network/access/qhttpmultipart_p.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/network/access/qhttpmultipart_p.h b/src/network/access/qhttpmultipart_p.h
index d485fcf5cd..12462849b6 100644
--- a/src/network/access/qhttpmultipart_p.h
+++ b/src/network/access/qhttpmultipart_p.h
@@ -18,7 +18,10 @@
#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "QtCore/qshareddata.h"
#include "qnetworkrequest_p.h" // for deriving QHttpPartPrivate from QNetworkHeadersPrivate
+#include "qhttpheadershelper_p.h"
+
#include "private/qobject_p.h"
+#include <QtCore/qiodevice.h>
#ifndef Q_OS_WASM
QT_REQUIRE_CONFIG(http);
@@ -47,8 +50,10 @@ public:
inline bool operator==(const QHttpPartPrivate &other) const
{
- return rawHeaders == other.rawHeaders && body == other.body &&
- bodyDevice == other.bodyDevice && readPointer == other.readPointer;
+ return QHttpHeadersHelper::compareStrict(httpHeaders, other.httpHeaders)
+ && body == other.body
+ && bodyDevice == other.bodyDevice
+ && readPointer == other.readPointer;
}
void setBodyDevice(QIODevice *device) {
@@ -89,8 +94,7 @@ public:
QIODevice(), multiPart(parentMultiPart), readPointer(0), deviceSize(-1) {
}
- ~QHttpMultiPartIODevice() {
- }
+ ~QHttpMultiPartIODevice() override;
virtual bool atEnd() const override {
return readPointer == size();
@@ -130,11 +134,7 @@ class QHttpMultiPartPrivate: public QObjectPrivate
public:
QHttpMultiPartPrivate();
-
- ~QHttpMultiPartPrivate()
- {
- delete device;
- }
+ ~QHttpMultiPartPrivate() override;
QList<QHttpPart> parts;
QByteArray boundary;