diff options
author | Luca Di Sera <luca.disera@qt.io> | 2022-10-11 10:40:11 +0200 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2022-10-13 10:29:46 +0200 |
commit | 65f86e3be39822ee4d0426a0d85ca77ee4f7d342 (patch) | |
tree | 5b08f1bb2466594f2de48ba7f24121f05250ebc5 | |
parent | 14a66dd28de00efb0b636f5077bdbf7baf067115 (diff) | |
download | qtwebsockets-65f86e3be39822ee4d0426a0d85ca77ee4f7d342.tar.gz |
Replace usages of Q_CLANG_QDOC with Q_QDOC
To allow the user to customize the C++ code that QDoc sees, so as to be
able to work-around some limitations on QDoc itself, QDoc defines two
symbols: Q_QDOC and Q_CLANG_QDOC, both of which are "true" during an
entire execution of QDoc.
At a certain point in time, QDoc allowed the user the choice between a
custom C++ parser and a Clang based one.
The Q_QDOC symbol would always be defined while the Q_CLANG_QDOC symbol
would be defined only when the Clang based parser was chosen.
In more recent times, QDoc always uses a Clang based parser, such that
both Q_CLANG_QDOC and Q_QDOC are always defined, making them equivalent.
To avoid using different symbols, and the possible confusion and
fragmentation that derives from it, all usages of Q_CLANG_QDOC are now
replaced by the equivalent usages of Q_QDOC.
Change-Id: I637a5dfe613d02f7c4bfe6b31f91b64f498b1c7b
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
-rw-r--r-- | src/websockets/qwebsocketserver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsocketserver.h b/src/websockets/qwebsocketserver.h index fc70d4d..1ef7fbb 100644 --- a/src/websockets/qwebsocketserver.h +++ b/src/websockets/qwebsocketserver.h @@ -54,7 +54,7 @@ public: void setMaxPendingConnections(int numConnections); int maxPendingConnections() const; -#if QT_HAS_INCLUDE(<chrono>) || defined(Q_CLANG_QDOC) +#if QT_HAS_INCLUDE(<chrono>) || defined(Q_QDOC) void setHandshakeTimeout(std::chrono::milliseconds msec) { setHandshakeTimeout(int(msec.count())); |