Use wxUIntToPtr to avoid the warnings about casts from smaller (in 64 bit
build) int type to pointer.
Closes #13394.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70124
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
iter->stamp = m_gtk_model->stamp;
// user_data is just the index +1
- iter->user_data = (gpointer) (i+1);
+ iter->user_data = wxUIntToPtr(i+1);
return TRUE;
}
}
// user_data is just the index +1 (+2 because we need the next)
- iter->user_data = (gpointer) (n+2);
+ iter->user_data = wxUIntToPtr(n+2);
}
else
{
iter->stamp = m_gtk_model->stamp;
// user_data is just the index +1
- iter->user_data = (gpointer) (n+1);
+ iter->user_data = wxUIntToPtr(n+1);
return TRUE;
}