suppress warnings about void* to uint conversion losing precision (under 64 bit architectures)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -311,7 +311,7 @@ wxgtk_list_store_get_value (GtkTreeModel *tree_model,
|
|||||||
g_value_init( value, G_TYPE_STRING );
|
g_value_init( value, G_TYPE_STRING );
|
||||||
model->GetValue( variant,
|
model->GetValue( variant,
|
||||||
(unsigned int) column,
|
(unsigned int) column,
|
||||||
(unsigned int) iter->user_data );
|
wxPtrToUInt(iter->user_data) );
|
||||||
|
|
||||||
// FIXME: we should support different encodings here
|
// FIXME: we should support different encodings here
|
||||||
g_value_set_string( value, wxGTK_CONV_SYS(variant.GetString()) );
|
g_value_set_string( value, wxGTK_CONV_SYS(variant.GetString()) );
|
||||||
@@ -1638,7 +1638,7 @@ static void wxGtkTreeCellDataFunc( GtkTreeViewColumn *column,
|
|||||||
|
|
||||||
wxDataViewRenderer *cell = (wxDataViewRenderer*) data;
|
wxDataViewRenderer *cell = (wxDataViewRenderer*) data;
|
||||||
|
|
||||||
unsigned int model_row = (unsigned int) iter->user_data;
|
unsigned int model_row = wxPtrToUInt(iter->user_data);
|
||||||
|
|
||||||
wxVariant value;
|
wxVariant value;
|
||||||
list_store->model->GetValue( value, cell->GetOwner()->GetModelColumn(), model_row );
|
list_store->model->GetValue( value, cell->GetOwner()->GetModelColumn(), model_row );
|
||||||
|
Reference in New Issue
Block a user