Don't copy potentially big arrays in generic wxDataViewCtrl.
Use reference to hold the array of nodes instead of copying it. (Really) closes #12587. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1893,8 +1893,8 @@ bool Walker( wxDataViewTreeNode * node, DoJob & func )
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDataViewTreeNodes nodes = node->GetNodes();
|
const wxDataViewTreeNodes& nodes = node->GetNodes();
|
||||||
wxDataViewTreeLeaves leaves = node->GetChildren();
|
const wxDataViewTreeLeaves& leaves = node->GetChildren();
|
||||||
|
|
||||||
int len_nodes = nodes.GetCount();
|
int len_nodes = nodes.GetCount();
|
||||||
int len = leaves.GetCount();
|
int len = leaves.GetCount();
|
||||||
|
Reference in New Issue
Block a user