From 5619e7f964dcd0c3ea4b01911cdca7e375de3902 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 30 Aug 2015 19:49:29 +0200 Subject: [PATCH] Use wxSwap function to swap values of array elements in wxPGArrayStringEditorDialog::ArraySwap. --- src/propgrid/props.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index 6e68b95e18..cf5d557481 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -2647,10 +2647,7 @@ void wxPGArrayStringEditorDialog::ArrayRemoveAt( int index ) void wxPGArrayStringEditorDialog::ArraySwap( size_t first, size_t second ) { - wxString old_str = m_array[first]; - wxString new_str = m_array[second]; - m_array[first] = new_str; - m_array[second] = old_str; + wxSwap(m_array[first], m_array[second]); } wxPGArrayStringEditorDialog::wxPGArrayStringEditorDialog()