diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-08-12 14:33:04 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-08-14 19:48:58 +0000 |
commit | 090d3016c343e1db848cff44f33885972ecc8dbd (patch) | |
tree | 12cd439431e57c30a71635a885006f8ce56fa167 | |
parent | b022fcfcea6287d59b656e3326080e7fc3854781 (diff) |
QWebSocket: include and fwd-declare what you need
QWebSocket is-a QObject, so explicitly include qobject.h.
The header also needs QAuthenticator in-name-only, so forward-declare.
Don't rely on other headers to do it for us.
Found in API-review.
Change-Id: I4214a623cb52f1d90045f7c209e46d3b12f837e3
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit 28e973d2246c9af67348b9b4c1287b017e27ead6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/websockets/qwebsocket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket.h b/src/websockets/qwebsocket.h index bf9e393..bd2ece0 100644 --- a/src/websockets/qwebsocket.h +++ b/src/websockets/qwebsocket.h @@ -17,8 +17,11 @@ #include "QtWebSockets/qwebsockets_global.h" #include "QtWebSockets/qwebsocketprotocol.h" +#include <QtCore/qobject.h> + QT_BEGIN_NAMESPACE +class QAuthenticator; class QTcpSocket; class QWebSocketPrivate; class QMaskGenerator; |