From dfc5b35b040698640ac144fd2124b04ea49bb2e3 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Mon, 12 Nov 2018 23:42:32 +0100 Subject: [PATCH] Don't make a local copy of the entire array Use reference to the member array instead. --- src/generic/odcombo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index 8ae5075e20..fffb15a601 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -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