forked from qt-creator/qt-creator
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:
@@ -259,7 +259,7 @@ PyObject *value_ChildFromName(Value *self, PyObject *args)
|
|||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
|
|
||||||
const ULONG childCount = numberOfChildren(self);
|
const ULONG childCount = numberOfChildren(self);
|
||||||
if (childCount == 0 || !expandValue(self))
|
if (childCount == 0)
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
|
|
||||||
for (ULONG childIndex = self->m_index + 1 ; childIndex <= self->m_index + childCount; ++childIndex) {
|
for (ULONG childIndex = self->m_index + 1 ; childIndex <= self->m_index + childCount; ++childIndex) {
|
||||||
|
Reference in New Issue
Block a user