Changeset 83811 in vbox
- Timestamp:
- Apr 19, 2020 12:06:38 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgStatsQt.cpp
r82968 r83811 963 963 /* destroy the children first with the appropriate begin/endRemoveRows signals. */ 964 964 DBGGUISTATSSTACK Stack; 965 Stack.a[0].pNode = pNode;965 Stack.a[0].pNode = pNode; 966 966 Stack.a[0].iChild = -1; 967 967 Stack.iTop = 0; … … 969 969 { 970 970 /* get top element */ 971 PDBGGUISTATSNODE p Node= Stack.a[Stack.iTop].pNode;972 uint32_t iChild = ++Stack.a[Stack.iTop].iChild;973 if (iChild < p Node->cChildren)971 PDBGGUISTATSNODE pCurNode = Stack.a[Stack.iTop].pNode; 972 uint32_t iChild = ++Stack.a[Stack.iTop].iChild; 973 if (iChild < pCurNode->cChildren) 974 974 { 975 975 /* push */ 976 976 Stack.iTop++; 977 977 Assert(Stack.iTop < (int32_t)RT_ELEMENTS(Stack.a)); 978 Stack.a[Stack.iTop].pNode = pNode->papChildren[iChild];978 Stack.a[Stack.iTop].pNode = pCurNode->papChildren[iChild]; 979 979 Stack.a[Stack.iTop].iChild = 0; 980 980 } … … 983 983 /* pop and destroy all the children. */ 984 984 Stack.iTop--; 985 uint32_t i = p Node->cChildren;985 uint32_t i = pCurNode->cChildren; 986 986 if (i) 987 987 { 988 beginRemoveRows(createIndex(p Node->iSelf, 0, pNode), 0, i - 1);988 beginRemoveRows(createIndex(pCurNode->iSelf, 0, pCurNode), 0, i - 1); 989 989 while (i-- > 0) 990 destroyNode(p Node->papChildren[i]);991 p Node->cChildren = 0;990 destroyNode(pCurNode->papChildren[i]); 991 pCurNode->cChildren = 0; 992 992 endRemoveRows(); 993 993 }
Note:
See TracChangeset
for help on using the changeset viewer.