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:
Artur Wieczorek
2015-02-08 12:51:14 +00:00
parent a5718923ad
commit e1286f48f7

View File

@@ -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]);
}
//