Commit 7b2a25fb authored by Ralf Habacker's avatar Ralf Habacker

Coverige check CID 71408: Logically dead code (DEADCODE)

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

Explanation: DClassifierCodeDocument is derived from CodeDocument
  and dynamic_cast<CodeDocument*>(this) cannot be null.
parent b9988d1d
......@@ -240,17 +240,7 @@ void DClassifierCodeDocument::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