diff --git a/src/qdoc/sections.cpp b/src/qdoc/sections.cpp index 0aa9f37e9328184d28b9ebf4026617deb8007e04..e91a1014e4e77d09e1b34d0276cfbd6a35615e7d 100644 --- a/src/qdoc/sections.cpp +++ b/src/qdoc/sections.cpp @@ -934,8 +934,11 @@ void Sections::buildStdCppClassRefPageSections() documentAll = false; NodeList::ConstIterator c = aggregate_->constBegin(); while (c != aggregate_->constEnd()) { - Node* n = *c; - if (!n->isPrivate() && !n->isProperty() && !n->isRelatedNonmember()) + Node *n = *c; + if (!n->isPrivate() + && !n->isProperty() + && !n->isRelatedNonmember() + && !n->isSharedCommentNode()) allMembers.insert(n); if (!documentAll && !n->hasDoc()) { ++c; @@ -961,8 +964,11 @@ void Sections::buildStdCppClassRefPageSections() ClassNode *cn = stack.pop(); c = cn->constBegin(); while (c != cn->constEnd()) { - Node* n = *c; - if (!n->isPrivate() && !n->isProperty()) + Node *n = *c; + if (!n->isPrivate() + && !n->isProperty() + && !n->isRelatedNonmember() + && !n->isSharedCommentNode()) allMembers.insert(n); if (!documentAll && !n->hasDoc()) { ++c; @@ -1001,7 +1007,9 @@ void Sections::buildStdQmlTypeRefPageSections() ++c; continue; } - allMembers.add(classMap, n); + if (!n->isSharedCommentNode()) + allMembers.add(classMap, n); + distributeQmlNodeInSummaryVector(sv, n); distributeQmlNodeInDetailsVector(dv, n); ++c; @@ -1026,7 +1034,7 @@ void Sections::buildStdQmlTypeRefPageSections() NodeList::ConstIterator c = qtn->constBegin(); while (c != qtn->constEnd()) { Node *n = *c; - if (n->isInternal()) { + if (n->isInternal() || n->isSharedCommentNode()) { ++c; continue; }