Use wxSwap function to swap values of array elements in wxPGArrayStringEditorDialog::ArraySwap.

This commit is contained in:
Artur Wieczorek
2015-08-30 19:49:29 +02:00
parent d6f2264f8b
commit 5619e7f964

View File

@@ -2647,10 +2647,7 @@ void wxPGArrayStringEditorDialog::ArrayRemoveAt( int index )
void wxPGArrayStringEditorDialog::ArraySwap( size_t first, size_t second ) void wxPGArrayStringEditorDialog::ArraySwap( size_t first, size_t second )
{ {
wxString old_str = m_array[first]; wxSwap(m_array[first], m_array[second]);
wxString new_str = m_array[second];
m_array[first] = new_str;
m_array[second] = old_str;
} }
wxPGArrayStringEditorDialog::wxPGArrayStringEditorDialog() wxPGArrayStringEditorDialog::wxPGArrayStringEditorDialog()