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