coverity#1019332 Unchecked dynamic_cast
Change-Id: I280928da005b8cdd94c8bf33eb5aaa86a5ea2fcd
This commit is contained in:
@@ -1371,17 +1371,16 @@ void addPlainStructBaseArguments(
|
||||
"unexpected entity \"" + base
|
||||
+ "\" in call to addPlainStructBaseArguments");
|
||||
}
|
||||
rtl::Reference< unoidl::PlainStructTypeEntity > ent2(
|
||||
dynamic_cast< unoidl::PlainStructTypeEntity * >(ent.get()));
|
||||
assert(ent2.is());
|
||||
if (!ent2->getDirectBase().isEmpty()) {
|
||||
unoidl::PlainStructTypeEntity& ent2(
|
||||
dynamic_cast<unoidl::PlainStructTypeEntity&>(*ent.get()));
|
||||
if (!ent2.getDirectBase().isEmpty()) {
|
||||
addPlainStructBaseArguments(
|
||||
manager, dependencies, methodDescriptor, code,
|
||||
ent2->getDirectBase(), index);
|
||||
ent2.getDirectBase(), index);
|
||||
}
|
||||
for (std::vector< unoidl::PlainStructTypeEntity::Member >::const_iterator i(
|
||||
ent2->getDirectMembers().begin());
|
||||
i != ent2->getDirectMembers().end(); ++i)
|
||||
ent2.getDirectMembers().begin());
|
||||
i != ent2.getDirectMembers().end(); ++i)
|
||||
{
|
||||
methodDescriptor->addParameter(i->type, false, true, 0);
|
||||
addLoadLocal(manager, code, index, false, i->type, false, dependencies);
|
||||
|
Reference in New Issue
Block a user