use wxUIntPtr instead of long for 3rd parameter of wxListCtrl::SortItems() to allow passing pointers to it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-04-15 21:23:50 +00:00
parent 975fe60bba
commit 6e2f308461
12 changed files with 28 additions and 22 deletions

View File

@@ -4152,7 +4152,7 @@ int wxListMainWindow::GetItemWidthWithImage(wxListItem * item)
// ----------------------------------------------------------------------------
static wxListCtrlCompare list_ctrl_compare_func_2;
static long list_ctrl_compare_data;
static wxUIntPtr list_ctrl_compare_data;
int LINKAGEMODE list_ctrl_compare_func_1( wxListLineData **arg1, wxListLineData **arg2 )
{
@@ -4166,7 +4166,7 @@ int LINKAGEMODE list_ctrl_compare_func_1( wxListLineData **arg1, wxListLineData
return list_ctrl_compare_func_2( data1, data2, list_ctrl_compare_data );
}
void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data )
void wxListMainWindow::SortItems( wxListCtrlCompare fn, wxUIntPtr data )
{
// selections won't make sense any more after sorting the items so reset
// them
@@ -4918,7 +4918,7 @@ bool wxGenericListCtrl::ScrollList( int dx, int dy )
// or zero if the two items are equivalent.
// data is arbitrary data to be passed to the sort function.
bool wxGenericListCtrl::SortItems( wxListCtrlCompare fn, long data )
bool wxGenericListCtrl::SortItems( wxListCtrlCompare fn, wxUIntPtr data )
{
m_mainWin->SortItems( fn, data );
return true;