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:
Vadim Zeitlin
2010-11-03 16:29:18 +00:00
parent 53250e3afa
commit 5ca9771ff3

View File

@@ -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();