Skip to content

Commit d3fe389

Browse files
committed
Stop showing classes and concepts in namespace list
1 parent 0b557b3 commit d3fe389

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/index.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,8 @@ static void writeNamespaceTreeElement(const NamespaceDef *nd,FTVHelp *ftv,
18021802
(!rootOnly || nd->getOuterScope()==Doxygen::globalScope))
18031803
{
18041804

1805-
bool hasChildren = namespaceHasNestedNamespace(nd) ||
1805+
bool hasNestedNamespace = namespaceHasNestedNamespace(nd);
1806+
bool hasChildren = hasNestedNamespace ||
18061807
namespaceHasNestedClass(nd,false,ClassDef::Class) ||
18071808
namespaceHasNestedConcept(nd);
18081809
bool isLinkable = nd->isLinkable();
@@ -1825,7 +1826,7 @@ static void writeNamespaceTreeElement(const NamespaceDef *nd,FTVHelp *ftv,
18251826
bool isDir = hasChildren || visibleMembers>0;
18261827
if (isLinkable || isDir)
18271828
{
1828-
ftv->addContentsItem(hasChildren,nd->localName(),ref,file,QCString(),FALSE,nd->partOfGroups().empty(),nd);
1829+
ftv->addContentsItem(hasNestedNamespace,nd->localName(),ref,file,QCString(),FALSE,nd->partOfGroups().empty(),nd);
18291830

18301831
if (addToIndex)
18311832
{
@@ -1841,8 +1842,8 @@ static void writeNamespaceTreeElement(const NamespaceDef *nd,FTVHelp *ftv,
18411842
{
18421843
ftv->incContentsDepth();
18431844
writeNamespaceTree(nd->getNamespaces(),ftv,FALSE,addToIndex);
1844-
writeClassTree(nd->getClasses(),ftv,addToIndex,FALSE,ClassDef::Class);
1845-
writeConceptList(nd->getConcepts(),ftv,addToIndex);
1845+
writeClassTree(nd->getClasses(),nullptr,addToIndex,FALSE,ClassDef::Class);
1846+
writeConceptList(nd->getConcepts(),nullptr,addToIndex);
18461847
writeNamespaceMembers(nd,addToIndex);
18471848
ftv->decContentsDepth();
18481849
}

0 commit comments

Comments
 (0)