diff options
| author | Martin Smith <martin.smith@digia.com> | 2015-08-31 12:52:26 +0200 |
|---|---|---|
| committer | Martin Smith <martin.smith@digia.com> | 2015-09-01 05:24:20 +0000 |
| commit | d3f0bee885407b1093b4533e69cd320dc9711c91 (patch) | |
| tree | d51518f3a57b1912d74a863bb4483fb4ab440d91 /src/tools/qdoc/qdocdatabase.cpp | |
| parent | e979ca5edaef8dee18c6c6d20895b6bd1625c233 (diff) | |
qdoc: Fixed linking for overloaded functions
qdoc was failing to create links when a \l command referred
to a function that has an undocumented overload with no
parameters. qdoc would choose that internal function to be
the target, but the link construction would fail.
qdoc now checks the status of the overload that is matched.
If the matching function is marked internal, qdoc keeps
looking for one that is not marked internal.
Change-Id: Iebf296e79dc2554e54f00ef72b6f6c1ba7074f06
Task-number: QTBUG-47991
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/tools/qdoc/qdocdatabase.cpp')
| -rw-r--r-- | src/tools/qdoc/qdocdatabase.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tools/qdoc/qdocdatabase.cpp b/src/tools/qdoc/qdocdatabase.cpp index 7f2e64b00c7..aef785f30e6 100644 --- a/src/tools/qdoc/qdocdatabase.cpp +++ b/src/tools/qdoc/qdocdatabase.cpp @@ -1673,8 +1673,6 @@ const Node* QDocDatabase::findNodeForAtom(const Atom* a, const Node* relative, Q Atom* atom = const_cast<Atom*>(a); QStringList targetPath = atom->string().split("#"); QString first = targetPath.first().trimmed(); - if (Generator::debugging()) - qDebug() << " first:" << first; Tree* domain = 0; Node::Genus genus = Node::DontCare; @@ -1725,8 +1723,6 @@ const Node* QDocDatabase::findNodeForAtom(const Atom* a, const Node* relative, Q } else if (first.endsWith(QChar(')'))) { node = findFunctionNode(first, relative, genus); - if (Generator::debugging()) - qDebug() << " node:" << node; } else { node = findNodeForTarget(targetPath, relative, genus, ref); |
