Debugger: Don't check twice if a value is expanded

The check is already done by numberOfChildren.

Change-Id: I2dfad4e283546acb87d17ec63e47c43a0b0d467d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2017-01-05 11:00:29 +01:00
parent 1da8ed2b25
commit c30170117d

View File

@@ -259,7 +259,7 @@ PyObject *value_ChildFromName(Value *self, PyObject *args)
Py_RETURN_NONE;
const ULONG childCount = numberOfChildren(self);
if (childCount == 0 || !expandValue(self))
if (childCount == 0)
Py_RETURN_NONE;
for (ULONG childIndex = self->m_index + 1 ; childIndex <= self->m_index + childCount; ++childIndex) {