Use wxSwap() function to swap values of array elements in wxArrayDoubleEditorDialog::ArraySwap()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -409,10 +409,7 @@ void wxArrayDoubleEditorDialog::ArrayRemoveAt( int index )
|
||||
|
||||
void wxArrayDoubleEditorDialog::ArraySwap( size_t first, size_t second )
|
||||
{
|
||||
double a = m_array[first];
|
||||
double b = m_array[second];
|
||||
m_array[first] = b;
|
||||
m_array[second] = a;
|
||||
wxSwap(m_array[first], m_array[second]);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user