diff options
author | Topi Reinio <topi.reinio@qt.io> | 2019-11-22 12:45:18 +0100 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2019-12-02 12:32:59 +0100 |
commit | 1dfff8b60398bf2643d2b8f2f369cbf9659ae414 (patch) | |
tree | 02c36a067b3b16e63612bee7a84bcc20af3cf3b1 | |
parent | 0b0e82d80adb9dd57bd4a2aa7508c6a4caa8acc1 (diff) |
qdoc: Set node URL in ExternalPageNode constructor
We already know the full URL during construction of the node,
so use it.
This prevents a lot of (error-prone) processing when generating
links to \externalpage nodes.
Change-Id: I0209ae491b40908d063f3beb10b29aaffa00d237
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/qdoc/node.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qdoc/node.h b/src/qdoc/node.h index baec4d9f2..9629ca418 100644 --- a/src/qdoc/node.h +++ b/src/qdoc/node.h @@ -441,9 +441,10 @@ protected: class ExternalPageNode : public PageNode { public: - ExternalPageNode(Aggregate *parent, const QString &name) - : PageNode(Node::ExternalPage, parent, name) { + ExternalPageNode(Aggregate *parent, const QString &url) + : PageNode(Node::ExternalPage, parent, url) { setPageType(Node::ArticlePage); + setUrl(url); } }; |