Use wxSwap function to swap values of array elements in wxPGArrayStringEditorDialog::ArraySwap.
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user