diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 15:02:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 15:39:27 +0100 |
commit | bcba2088ab6e2b762800b8c11e0bce25185b369a (patch) | |
tree | 98a4228f33b163864b193d834b5cd863dd73fe38 /codemaker/source | |
parent | 0bed662171dea7b30ac3af12093b5196f2497a49 (diff) |
coverity#1019323 Unchecked dynamic_cast
Change-Id: I3d8b598e86339fdd51af48e62393550821b6278d
Diffstat (limited to 'codemaker/source')
-rw-r--r-- | codemaker/source/codemaker/typemanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codemaker/source/codemaker/typemanager.cxx b/codemaker/source/codemaker/typemanager.cxx index d2e346d6d680..3d1bd83199ca 100644 --- a/codemaker/source/codemaker/typemanager.cxx +++ b/codemaker/source/codemaker/typemanager.cxx @@ -180,7 +180,7 @@ codemaker::UnoType::Sort TypeManager::decompose( switch (s) { case codemaker::UnoType::SORT_TYPEDEF: if (resolveTypedefs) { - n = dynamic_cast< unoidl::TypedefEntity * >(ent.get())-> + n = dynamic_cast<unoidl::TypedefEntity&>(*ent.get()). getType(); while (n.startsWith("[]")) { ++k; //TODO: overflow |