coverity#1219788 Unchecked dynamic_cast

Change-Id: I1bedfb601320bc27adc0d0d72fcb8b3c5dfe73ff
This commit is contained in:
Caolán McNamara 2014-07-25 11:35:13 +01:00
parent 219eb78e3a
commit 09d79da135

View file

@ -3039,6 +3039,9 @@ bool ExceptionType::dumpBaseMembers(
rtl::Reference< unoidl::ExceptionTypeEntity > ent2(
dynamic_cast< unoidl::ExceptionTypeEntity * >(ent.get()));
assert(ent2.is());
if (!ent2.is()) {
return false;
}
hasMember = dumpBaseMembers( out, ent2->getDirectBase(), withType,
eligibleForDefaults && ent2->getDirectMembers().empty() );
int memberCount = 0;