Don't make a local copy of the entire array

Use reference to the member array instead.
This commit is contained in:
Artur Wieczorek
2018-11-12 23:42:32 +01:00
parent 3e50405b5f
commit dfc5b35b04

View File

@@ -543,7 +543,7 @@ int wxVListBoxComboPopup::Append(const wxString& item)
{
// Find position
// TODO: Could be optimized with binary search
wxArrayString strings = m_strings;
const wxArrayString& strings = m_strings;
unsigned int i;
for ( i=0; i<strings.GetCount(); i++ )