summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-26 13:18:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-26 15:51:55 +0100
commit9c82cb60de359a34d029ad8c3a84fa264840cde9 (patch)
tree994ba5a499f009b334e2bf933061f6ec04bf930e /codemaker
parent353188ecc44db8ed4e7c1e900901c17e4d7ce8e4 (diff)
coverity#1019329 Unchecked dynamic_cast
Change-Id: Ic340559c9ab9b74f4f932c90e08f2530c08e8d08
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/cppumaker/cpputype.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index 06bf874ccda8..9acec607f81b 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -929,7 +929,7 @@ OUString CppuType::resolveAllTypedefs(OUString const & name) const {
sal_Int32 k2;
n = b2u(
codemaker::UnoType::decompose(
- u2b(dynamic_cast< unoidl::TypedefEntity * >(ent.get())->
+ u2b(dynamic_cast<unoidl::TypedefEntity&>(*ent.get()).
getType()),
&k2));
k1 += k2; //TODO: overflow