summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-11-21 17:44:23 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-11-21 17:44:23 (GMT)
commitb2d009555ebce4a6802ac0255c056e880bdb45bd (patch)
tree7a3b852bbb5366e7434ac013143914cadb7a816a /src/doxygen.cpp
parent1611bc8f2488a705c3845fbc12ea4e95c69f07b3 (diff)
downloadDoxygen-b2d009555ebce4a6802ac0255c056e880bdb45bd.zip
Doxygen-b2d009555ebce4a6802ac0255c056e880bdb45bd.tar.gz
Doxygen-b2d009555ebce4a6802ac0255c056e880bdb45bd.tar.bz2
issue #8192: Excluded inline namespace broken after a5792da8
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 0a8bb0e..0fb602d 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -1160,7 +1160,8 @@ static void resolveClassNestingRelations()
ClassDef *icd=0;
for (cli.toFirst();(icd=cli.current());++cli)
{
- if (visitedClasses.find(icd)==visitedClasses.end())
+ ClassDefMutable *cd = toClassDefMutable(icd);
+ if (cd && visitedClasses.find(icd)==visitedClasses.end())
{
QCString name = stripAnonymousNamespaceScope(icd->name());
//printf("processing=%s, iteration=%d\n",cd->name().data(),iteration);
@@ -1169,7 +1170,6 @@ static void resolveClassNestingRelations()
name,icd->getFileDef(),0);
if (d)
{
- ClassDefMutable *cd = toClassDefMutable(icd);
//printf("****** adding %s to scope %s in iteration %d\n",cd->name().data(),d->name().data(),iteration);
d->addInnerCompound(cd);
cd->setOuterScope(toDefinition(d));