Kaydet (Commit) bcba2088 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1019323 Unchecked dynamic_cast

Change-Id: I3d8b598e86339fdd51af48e62393550821b6278d
üst 0bed6621
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment