summaryrefslogtreecommitdiff
path: root/src/qdoc/aggregate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/aggregate.cpp')
-rw-r--r--src/qdoc/aggregate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qdoc/aggregate.cpp b/src/qdoc/aggregate.cpp
index f2d8bec7a..c824dc793 100644
--- a/src/qdoc/aggregate.cpp
+++ b/src/qdoc/aggregate.cpp
@@ -104,7 +104,7 @@ Node *Aggregate::findChildNode(const QString &name, Node::Genus genus, int findF
} else {
const NodeList &nodes = m_nonfunctionMap.values(name);
for (auto *node : nodes) {
- if (genus == node->genus()) {
+ if (genus & node->genus()) {
if (findFlags & TypesOnly) {
if (!node->isTypedef() && !node->isClassNode() && !node->isQmlType()
&& !node->isQmlBasicType() && !node->isJsType()
@@ -116,7 +116,7 @@ Node *Aggregate::findChildNode(const QString &name, Node::Genus genus, int findF
}
}
}
- if (genus != Node::DontCare && this->genus() != genus)
+ if (genus != Node::DontCare && !(genus & this->genus()))
return nullptr;
return m_functionMap.value(name);
}