qhttpserverrequest: Change QSharedPointer to QScopedPointer

And disable copy for QHttpServerRequest since it's not intended
to be copy-able.

Change-Id: I34ba6929507cc4f020fac52bf36c816b194fd250
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Mikhail Svetkin 2019-10-27 20:34:17 +01:00
parent 45e1139892
commit 5fcfbb6629
2 changed files with 3 additions and 8 deletions

View File

@ -253,10 +253,6 @@ QHttpServerRequest::QHttpServerRequest(const QHostAddress &remoteAddress) :
d(new QHttpServerRequestPrivate(remoteAddress))
{}
QHttpServerRequest::QHttpServerRequest(const QHttpServerRequest &other) :
d(other.d)
{}
QHttpServerRequest::~QHttpServerRequest()
{}

View File

@ -89,17 +89,16 @@ public:
QByteArray body() const;
QHostAddress remoteAddress() const;
protected:
QHttpServerRequest(const QHttpServerRequest &other);
private:
Q_DISABLE_COPY(QHttpServerRequest)
#if !defined(QT_NO_DEBUG_STREAM)
friend Q_HTTPSERVER_EXPORT QDebug operator<<(QDebug debug, const QHttpServerRequest &request);
#endif
explicit QHttpServerRequest(const QHostAddress &remoteAddress);
QSharedPointer<QHttpServerRequestPrivate> d;
QScopedPointer<QHttpServerRequestPrivate> d;
};
QT_END_NAMESPACE