mirror of
https://github.com/QuasarApp/qthttpserver.git
synced 2025-04-28 19:34:31 +00:00
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:
parent
45e1139892
commit
5fcfbb6629
@ -253,10 +253,6 @@ QHttpServerRequest::QHttpServerRequest(const QHostAddress &remoteAddress) :
|
||||
d(new QHttpServerRequestPrivate(remoteAddress))
|
||||
{}
|
||||
|
||||
QHttpServerRequest::QHttpServerRequest(const QHttpServerRequest &other) :
|
||||
d(other.d)
|
||||
{}
|
||||
|
||||
QHttpServerRequest::~QHttpServerRequest()
|
||||
{}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user