QDoc: Quickly determine that a PageNode is used to avoid an assert
The beginSubPage() function contained an assert that the node supplied
to it was a PageNode. Since it was possible to reason that all places
in Generator call it with a PageNode or instance of a subclass, the
signatures of beginSubPage() and other functions were updated to use
PageNode instead of Node.
Change-Id: I9d2c9f8e580f9d4986714e5b4586cfd0456b86dd
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
| commit | 37df41db3c3638d27862a80c7c2d7b2abb134e28 |
| parent | 4458c40afc4c148ac156fb641a149959ab0c4186 |
| author | David Boddie <david.boddie@qt.io> |
| committer | David Boddie <david.boddie@qt.io> |
| commit time | Thu, 5 Mar 2026 13:49:27 +0100 |
- M src/qdoc/qdoc/src/qdoc/docbookgenerator.cpp
- M src/qdoc/qdoc/src/qdoc/docbookgenerator.h
- M src/qdoc/qdoc/src/qdoc/generator.cpp
- M src/qdoc/qdoc/src/qdoc/generator.h
- M src/qdoc/qdoc/src/qdoc/htmlgenerator.cpp
- M src/qdoc/qdoc/src/qdoc/htmlgenerator.h
- M src/qdoc/qdoc/src/qdoc/webxmlgenerator.cpp
- M src/qdoc/qdoc/src/qdoc/webxmlgenerator.h