coverity#1019326 Unchecked dynamic_cast

Change-Id: Ib3f0776048ca3dbb8a7efa4d9240f4ee9d6ac9dd
This commit is contained in:
Caolán McNamara
2014-05-26 13:21:02 +01:00
parent 9c82cb60de
commit e947342b9c

View File

@@ -719,7 +719,7 @@ OUString CppuType::getTypeClass(OUString const & name, bool cStyle) {
: OUString("::css::uno::TypeClass_INTERFACE");
case codemaker::UnoType::SORT_TYPEDEF:
return getTypeClass(
dynamic_cast< unoidl::TypedefEntity * >(ent.get())->getType(),
dynamic_cast<unoidl::TypedefEntity&>(*ent.get()).getType(),
cStyle);
default:
for (;;) { std::abort(); }