diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-18 14:00:59 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-18 14:23:28 (GMT) |
commit | f0cc0f5da51faddd490c2cf358614b4ab70cc8ac (patch) | |
tree | d88c647365010677b4c4f6353e0e03e0daea6f33 /src/filedef.cpp | |
parent | 8ff99363c2f6b3226fe5b57f38ae1d4805dca22c (diff) | |
download | Doxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.zip Doxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.tar.gz Doxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.tar.bz2 |
Minor restructuring
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index 6e14e2f..f9f68d1 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -1265,41 +1265,27 @@ void FileDef::insertClass(ClassDef *cd) { if (cd->isHidden()) return; - ClassSDict *d; + ClassSDict *d=0; + ClassSDict **dd=&m_classSDict; if (Config_getBool(OPTIMIZE_OUTPUT_SLICE)) { - if (cd->isInterface()) + if (cd->compoundType()==ClassDef::Interface) { - if (m_interfaceSDict==0) - m_interfaceSDict = new ClassSDict(17); - d = m_interfaceSDict; + dd = &m_interfaceSDict; } - else if (cd->isStruct()) + else if (cd->compoundType()==ClassDef::Struct) { - if (m_structSDict==0) - m_structSDict = new ClassSDict(17); - d = m_structSDict; + dd = &m_structSDict; } - else if (cd->isException()) + else if (cd->compoundType()==ClassDef::Exception) { - if (m_exceptionSDict==0) - m_exceptionSDict = new ClassSDict(17); - d = m_exceptionSDict; - } - else - { - if (m_classSDict==0) - m_classSDict = new ClassSDict(17); - d = m_classSDict; + dd = &m_exceptionSDict; } } - else - { - if (m_classSDict==0) - m_classSDict = new ClassSDict(17); - d = m_classSDict; - } + + if (*dd==0) *dd = new ClassSDict(17); + d = *dd; if (Config_getBool(SORT_BRIEF_DOCS)) { |