summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-11-18 14:00:59 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-11-18 14:23:28 (GMT)
commitf0cc0f5da51faddd490c2cf358614b4ab70cc8ac (patch)
treed88c647365010677b4c4f6353e0e03e0daea6f33 /src/namespacedef.cpp
parent8ff99363c2f6b3226fe5b57f38ae1d4805dca22c (diff)
downloadDoxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.zip
Doxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.tar.gz
Doxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.tar.bz2
Minor restructuring
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index 520b0ca..bc8bb47 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -170,28 +170,34 @@ void NamespaceDef::addInnerCompound(Definition *d)
void NamespaceDef::insertClass(ClassDef *cd)
{
- ClassSDict *d;
+ ClassSDict *d = classSDict;
if (Config_getBool(OPTIMIZE_OUTPUT_SLICE))
{
- if (cd->isInterface())
+ if (cd->compoundType()==ClassDef::Interface)
+ {
d = interfaceSDict;
- else if (cd->isStruct())
+ }
+ else if (cd->compoundType()==ClassDef::Struct)
+ {
d = structSDict;
- else if (cd->isException())
+ }
+ else if (cd->compoundType()==ClassDef::Exception)
+ {
d = exceptionSDict;
- else
- d = classSDict;
+ }
}
- else
- d = classSDict;
if (d->find(cd->name())==0)
{
if (Config_getBool(SORT_BRIEF_DOCS))
+ {
d->inSort(cd->name(),cd);
+ }
else
+ {
d->append(cd->name(),cd);
+ }
}
}