summaryrefslogtreecommitdiffstats
path: root/examples/remoteobjects/websockets/common/websocketiodevice.cpp
Commit message (Collapse)AuthorAgeFilesLines
* websockets example: fix namespaced buildsMarc Mutz2023-08-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | The forward declaration of class QWebSocket in websocketiodevice.h sits at global scope, so declares a second QWebSocket in namespaced builds, and makes the following uses of the name ambiguous. Fix by replacing the forward declaration with an include. This is preferable over QT_FORWARD_DECLARE_CLASS, because ~WebSocketIoDevice() is inline, and QPointer<QWebSocket>::~QPointer() kinda needs to know its payload in-size. The alternative would be to use QT_FORWARD_DECLARE_CLASS and make the destructor out-of-line. This solution is simpler. Amends b8a71125f038b5a52d034b804d32ecddd9e19286. Change-Id: I8c8dc2a772497c499a708ddb84e7ae6bc56c92bc Reviewed-by: BogDan Vatra <bogdan@kdab.com> Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io> (cherry picked from commit e5a461ac978433a284cc8f4309fdfa326a34a2c0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add WebSockets exampleBogDan Vatra2019-06-121-0/+99
Change-Id: I5626b8a835c3b2d717e30b482678b95e20f26d38 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>