Don't make a local copy of the entire array
Use reference to the member array instead.
This commit is contained in:
@@ -543,7 +543,7 @@ int wxVListBoxComboPopup::Append(const wxString& item)
|
|||||||
{
|
{
|
||||||
// Find position
|
// Find position
|
||||||
// TODO: Could be optimized with binary search
|
// TODO: Could be optimized with binary search
|
||||||
wxArrayString strings = m_strings;
|
const wxArrayString& strings = m_strings;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
for ( i=0; i<strings.GetCount(); i++ )
|
for ( i=0; i<strings.GetCount(); i++ )
|
||||||
|
Reference in New Issue
Block a user