Skip to content

Commit

Permalink
Bug 722619 - doxygen 1.8.6 sorts the contents of a namespace by group…
Browse files Browse the repository at this point in the history
… within the Class List
  • Loading branch information
Dimitri van Heesch committed Feb 22, 2014
1 parent 9b76c1a commit f9b80af
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/classdef.cpp
Expand Up @@ -3930,6 +3930,10 @@ void ClassDef::sortMemberLists()
{
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
}
if (m_impl->innerClasses)
{
m_impl->innerClasses->sort();
}
}

int ClassDef::countMemberDeclarations(MemberListType lt,ClassDef *inheritedFrom,
Expand Down
1 change: 0 additions & 1 deletion src/classlist.cpp
Expand Up @@ -36,7 +36,6 @@ ClassList::~ClassList()
static int compItems(const ClassDef *c1,const ClassDef *c2)
{
static bool b = Config_getBool("SORT_BY_SCOPE_NAME");
//printf("compItems: %d %s<->%s\n",b,c1->name().data(),c2->name().data());
if (b)
{
return qstricmp(c1->name(), c2->name());
Expand Down
2 changes: 1 addition & 1 deletion src/index.cpp
Expand Up @@ -1413,7 +1413,7 @@ static void writeNamespaceTree(NamespaceSDict *nsDict,FTVHelp *ftv,
}
}

if (isLinkable || hasChildren)
if ((isLinkable && !showClasses) || hasChildren)
{
ftv->addContentsItem(hasChildren,nd->localName(),ref,file,0,FALSE,TRUE,nd);

Expand Down
8 changes: 8 additions & 0 deletions src/namespacedef.cpp
Expand Up @@ -998,6 +998,14 @@ void NamespaceDef::sortMemberLists()
{
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
}
if (classSDict)
{
classSDict->sort();
}
if (namespaceSDict)
{
namespaceSDict->sort();
}
}


Expand Down

0 comments on commit f9b80af

Please sign in to comment.