coverity#1019330 Unchecked dynamic_cast

Change-Id: I9c7893f7c9af2b42dcc50f2d1463ec497bb85e30
This commit is contained in:
Caolán McNamara
2014-05-26 13:16:47 +01:00
parent 4dbb91ce73
commit 353188ecc4

View File

@@ -914,7 +914,7 @@ OUString CppuType::resolveOuterTypedefs(OUString const & name) const {
if (m_typeMgr->getSort(n, &ent) != codemaker::UnoType::SORT_TYPEDEF) {
return n;
}
n = dynamic_cast< unoidl::TypedefEntity * >(ent.get())->getType();
n = dynamic_cast<unoidl::TypedefEntity&>(*ent.get()).getType();
}
}