From 353188ecc44db8ed4e7c1e900901c17e4d7ce8e4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 May 2014 13:16:47 +0100 Subject: coverity#1019330 Unchecked dynamic_cast Change-Id: I9c7893f7c9af2b42dcc50f2d1463ec497bb85e30 --- codemaker/source/cppumaker/cpputype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 1ef6506123d3..06bf874ccda8 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -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(*ent.get()).getType(); } } -- cgit