debugger: allow NULL pointers in QVector<Foo*> and QStack<Foo*> dumpers

This commit is contained in:
hjk
2009-10-27 16:34:32 +01:00
parent 7bbd2532e8
commit 695201b02d

View File

@@ -2926,7 +2926,7 @@ static void qDumpQVector(QDumper &d)
if (innerIsPointerType && nn > 0)
for (int i = 0; i != n; ++i)
if (const void *p = addOffset(v, i * innersize + typeddatasize))
qCheckAccess(deref(p));
qCheckPointer(deref(p));
d.putItemCount("value", n);
d.putItem("valueeditable", "false");