summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Boddie <[email protected]>2025-05-23 14:36:40 +0200
committerDavid Boddie <[email protected]>2025-05-30 12:33:57 +0200
commitb3a1275759d5de2d48cdbe4282742fdb50742d9c (patch)
treeda3aae26a6233a6c2e51152e72f21e0de1a54a2f
parent41d599f817aeebe1086f9bcdf8d97e0230d3435b (diff)
QDoc: Don't auto-link to deprecated functionsHEADdev
Function auto-links that resolve to deprecated functions prevent valid alternatives from being found. By discarding deprecated functions we at least make it possible that a suitable target can be found. Auto-links to deprecated functions are not linked in any case, so we do not lose anything by doing this. It is possible that unrelated, identically-named functions might be found and linked. Fixes: QTBUG-137147 Change-Id: I500c9bf750a54a1e9807b92eb8f3391a2ad42a3a Reviewed-by: Paul Wicking <[email protected]>
-rw-r--r--src/qdoc/qdoc/src/qdoc/aggregate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/qdoc/src/qdoc/aggregate.cpp b/src/qdoc/qdoc/src/qdoc/aggregate.cpp
index e516c6e72..ebdf881d5 100644
--- a/src/qdoc/qdoc/src/qdoc/aggregate.cpp
+++ b/src/qdoc/qdoc/src/qdoc/aggregate.cpp
@@ -166,7 +166,7 @@ FunctionNode *Aggregate::findFunctionChild(const QString &name, const Parameters
// Assumes that overloads are already normalized; i.e, if there's
// an active function, it'll be found at the start of the list.
auto *fn = (*(*map_it).begin());
- return (parameters.isEmpty() && !fn->isInternal()) ? fn : nullptr;
+ return (parameters.isEmpty() && !fn->isInternal() && !fn->isDeprecated()) ? fn : nullptr;
}
/*!