Commit 4d7c6144 authored by Ralf Habacker's avatar Ralf Habacker

Coverige check CID 71423: Logically dead code (DEADCODE).

Execution cannot reach this statement: hb = dynamic_cast <Hierarch....

Explanation: JavaAntClassifierCodeDocument is derived from CodeDocument
 and dynamic_cast<CodeDocument*>(this) cannot be null.
parent 2d485ca6
......@@ -168,17 +168,7 @@ void JavaANTCodeDocument::loadChildTextBlocksFromNode (QDomElement & root)
if (!loadCheckForChildrenOK)
{
CodeDocument * test = dynamic_cast<CodeDocument*>(this);
if (test)
{
uWarning()<<" loadChildBlocks : unable to initialize any child blocks in doc: "<<test->getFileName()<<" "<<this;
} else {
HierarchicalCodeBlock * hb = dynamic_cast<HierarchicalCodeBlock*>(this);
if (hb)
uWarning()<<" loadChildBlocks : unable to initialize any child blocks in Hblock: "<<hb->getTag()<<" "<<this;
else
uDebug()<<" loadChildBlocks : unable to initialize any child blocks in UNKNOWN OBJ:"<<this;
}
uWarning() << " loadChildBlocks : unable to initialize any child blocks in doc: " << getFileName() << " " << this;
}
}
......
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