Commit 8a12fb3d authored by Ralf Habacker's avatar Ralf Habacker

Coverity check CID 71437: Logically dead code (DEADCODE).

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

Explanation: JavaClassifierCodeDocument is derived from of CodeDocument and
 dynamic_cast<CodeDocument*>(this) could not be null.
parent f654714e
......@@ -237,16 +237,7 @@ void JavaClassifierCodeDocument::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