diff options
author | Paul Wicking <paul.wicking@qt.io> | 2019-06-20 15:30:34 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2019-07-10 09:02:15 +0200 |
commit | 3dfad627317d4f0ec97a3b8e2da99890f5721492 (patch) | |
tree | 0ff51d60fbdf196f390dc0e00c37a24da7ec10e5 /src/qdoc/main.cpp | |
parent | f7a50cab668c27ab8e17be96add02e515e9b1681 (diff) | |
download | qttools-3dfad627317d4f0ec97a3b8e2da99890f5721492.tar.gz |
QDoc: Remove dummy class, rename variable and expand comment
This change removes a dummy class in favor of instantiating its base
class, and renames that instance to make it clearer what it does. The
change also expands on the related comment to make the rather
unintuitive behavior more immediate to the reader.
Change-Id: I666b2281660cd2fabf21c2a441c7254d76058752
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/main.cpp')
-rw-r--r-- | src/qdoc/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp index d98a23650..13adb63eb 100644 --- a/src/qdoc/main.cpp +++ b/src/qdoc/main.cpp @@ -556,8 +556,14 @@ int main(int argc, char **argv) /* Create code markers for plain text, C++, javascript, and QML. + + The plain CodeMarker must be instantiated first because it is used as + fallback when the other markers cannot be used. + + Each marker instance is prepended to the CodeMarker::markers list by the + base class constructor. */ - PlainCodeMarker plainMarker; + CodeMarker fallbackMarker; CppCodeMarker cppMarker; JsCodeMarker jsMarker; QmlCodeMarker qmlMarker; |