diff options
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 22 |
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); + } } } |