diff options
author | Paul Wicking <paul.wicking@qt.io> | 2021-05-12 13:58:47 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2021-05-19 14:28:26 +0200 |
commit | 4c3108e5c2975e8ab07d4cb2c722bb100625656d (patch) | |
tree | 9624bc3e6d7d8fe66098a1982335f389a696d0ae /src/qdoc/qmlcodeparser.h | |
parent | e2c226f3d1181c4f98a2bf8dc6d2eafcdeafd18e (diff) | |
download | qttools-4c3108e5c2975e8ab07d4cb2c722bb100625656d.tar.gz |
QDoc: Code cleanup
* Unify members; use s_ or m_ prefix instead of _ suffix.
* Remove unnecessary member that duplicates content in base class.
* Add [[nodiscard]] annotations where applicable.
* Add overloads to virtual methods that have been extended with
parameters with default values.
* Make single argument ctors explicit.
* Remove semi-colon from namespace declaration.
Change-Id: Ie1ff39079722b81ba6754f945a898dc9b335bbae
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/qmlcodeparser.h')
-rw-r--r-- | src/qdoc/qmlcodeparser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qdoc/qmlcodeparser.h b/src/qdoc/qmlcodeparser.h index 4a6dbe0ca..b8b141681 100644 --- a/src/qdoc/qmlcodeparser.h +++ b/src/qdoc/qmlcodeparser.h @@ -66,9 +66,9 @@ protected: private: #ifndef QT_NO_DECLARATIVE - QQmlJS::Engine engine; - QQmlJS::Lexer *lexer; - QQmlJS::Parser *parser; + QQmlJS::Engine m_engine {}; + QQmlJS::Lexer *m_lexer { nullptr }; + QQmlJS::Parser *m_parser { nullptr }; #endif }; |