wxStringList::Sort() bug corrected

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1998-12-25 00:34:23 +00:00
parent fdd8d7b538
commit 9257d0b705

View File

@ -628,11 +628,11 @@ void wxStringList::Sort()
}
qsort (array, N, sizeof (char *), wx_comparestrings);
Clear();
for (i = 0; i < N; i++)
Append (array[i]);
i = 0;
for ( node = GetFirst(); node; node = node->GetNext() )
node->SetData( array[i++] );
delete[]array;
delete [] array;
}