diff options
Diffstat (limited to 'cpp/src/slice2html/Gen.cpp')
-rw-r--r-- | cpp/src/slice2html/Gen.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp index a7c9974160e..4d90f1698ae 100644 --- a/cpp/src/slice2html/Gen.cpp +++ b/cpp/src/slice2html/Gen.cpp @@ -1843,9 +1843,13 @@ TOCGenerator::writeEntry(const ContainedPtr& c) { _symbols.push_back(c); } - else if(ClassDeclPtr::dynamicCast(c)) + else if(ClassDeclPtr cdecl = ClassDeclPtr::dynamicCast(c)) { - _symbols.push_back(ClassDeclPtr::dynamicCast(c)->definition()); + ContainedPtr definition = cdecl->definition(); + if(definition) + { + _symbols.push_back(definition); + } } end(); } |