Suppress gcc -Wint-to-pointer-cast warnings in GTK wxDataViewCtrl.
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
This commit is contained in:
@@ -3814,7 +3814,7 @@ gboolean wxDataViewCtrlInternal::get_iter( GtkTreeIter *iter, GtkTreePath *path
|
|||||||
|
|
||||||
iter->stamp = m_gtk_model->stamp;
|
iter->stamp = m_gtk_model->stamp;
|
||||||
// user_data is just the index +1
|
// user_data is just the index +1
|
||||||
iter->user_data = (gpointer) (i+1);
|
iter->user_data = wxUIntToPtr(i+1);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@@ -3917,7 +3917,7 @@ gboolean wxDataViewCtrlInternal::iter_next( GtkTreeIter *iter )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// user_data is just the index +1 (+2 because we need the next)
|
// 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
|
else
|
||||||
{
|
{
|
||||||
@@ -4071,7 +4071,7 @@ gboolean wxDataViewCtrlInternal::iter_nth_child( GtkTreeIter *iter, GtkTreeIter
|
|||||||
|
|
||||||
iter->stamp = m_gtk_model->stamp;
|
iter->stamp = m_gtk_model->stamp;
|
||||||
// user_data is just the index +1
|
// user_data is just the index +1
|
||||||
iter->user_data = (gpointer) (n+1);
|
iter->user_data = wxUIntToPtr(n+1);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user