Optimize the recursive folding in TreeView
This commit is contained in:
parent
c8b70dacd7
commit
998ad2aa87
@ -275,7 +275,6 @@ void TreeView::foldRecursively(HTREEITEM hParentItem) const
|
||||
foldRecursively(hItem);
|
||||
fold(hItem);
|
||||
}
|
||||
fold(hParentItem);
|
||||
}
|
||||
|
||||
void TreeView::foldAll() const
|
||||
@ -285,6 +284,7 @@ void TreeView::foldAll() const
|
||||
tvProj = getNextSibling(tvProj))
|
||||
{
|
||||
foldRecursively(tvProj);
|
||||
fold(tvProj);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user