Commit ad924399 authored by Robert Loehning's avatar Robert Loehning
Browse files

qmljs/qmljsdescribevalue: Remove pointless check



Change-Id: I4b932550ccaebd8b02d52da2b00c158011cbc4bf
Reviewed-by: default avatarMarco Benelli <marco.benelli@qt.io>
Reviewed-by: Christian Kamm's avatarChristian Kamm <mail@ckamm.de>
parent e4a6f620
......@@ -325,20 +325,18 @@ void DescribeValueVisitor::visit(const ObjectValue *value)
basicDump("ObjectValue", value, printDetail);
}
if (printDetail) {
if (value) {
dumpNewline();
dump("className:");
dump(value->className());
dumpNewline();
dump("members:");
openContext("[");
PrintMembers printMembers(*this);
value->processMembers(&printMembers);
closeContext("]");
dumpNewline();
dump("prototype:");
(*this)(value->prototype());
}
dumpNewline();
dump("className:");
dump(value->className());
dumpNewline();
dump("members:");
openContext("[");
PrintMembers printMembers(*this);
value->processMembers(&printMembers);
closeContext("]");
dumpNewline();
dump("prototype:");
(*this)(value->prototype());
closeContext();
}
--m_depth;
......
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