diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-06-28 10:43:46 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-06-28 10:43:46 -0230 |
commit | 80f30fd816d4174239ec1f2d3a01e3b492d12367 (patch) | |
tree | 6a1447c06871d18b967cec20c7a45cc902942a98 /cpp/src/slice2html/Gen.cpp | |
parent | Keep DB_CONFIG (diff) | |
download | ice-80f30fd816d4174239ec1f2d3a01e3b492d12367.tar.bz2 ice-80f30fd816d4174239ec1f2d3a01e3b492d12367.tar.xz ice-80f30fd816d4174239ec1f2d3a01e3b492d12367.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2278 - slice2html crash
Add missing .gitignore file to casino demo
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(); } |