Commit f7c8ccdf authored by Ralf Habacker's avatar Ralf Habacker

Coverity check @b3d0c70f, CID 88346: Logically dead code (DEADCODE)

Execution cannot reach the expression UMLObject::ot_Unknown inside this statement.
parent 70431bf6
......@@ -24,7 +24,7 @@ bool UMLFinder::includeObject(UMLFinder::Category category, UMLObject *o)
{
if (!o)
return false;
UMLObject::ObjectType type = o ? o->baseType() : UMLObject::ot_Unknown;
UMLObject::ObjectType type = o->baseType();
return category == All
|| (category == Classes && type == UMLObject::ot_Class)
|| (category == Interfaces && type == UMLObject::ot_Interface)
......
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