Use wxUIntPtr instead of wxClientData in wxDataViewListCtrl.
Do not delete the client data in wxDataViewListCtrl, this class mainly exists for compatibility with wxListCtrl and as the latter doesn't delete its client data, neither should the former. See #11088. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1710,7 +1710,7 @@ wxString wxDataViewListStore::GetColumnType( unsigned int pos ) const
|
||||
return m_cols[pos];
|
||||
}
|
||||
|
||||
void wxDataViewListStore::AppendItem( const wxVector<wxVariant> &values, wxClientData *data )
|
||||
void wxDataViewListStore::AppendItem( const wxVector<wxVariant> &values, wxUIntPtr data )
|
||||
{
|
||||
wxDataViewListStoreLine *line = new wxDataViewListStoreLine( data );
|
||||
line->m_values = values;
|
||||
@@ -1719,7 +1719,7 @@ void wxDataViewListStore::AppendItem( const wxVector<wxVariant> &values, wxClien
|
||||
RowAppended();
|
||||
}
|
||||
|
||||
void wxDataViewListStore::PrependItem( const wxVector<wxVariant> &values, wxClientData *data )
|
||||
void wxDataViewListStore::PrependItem( const wxVector<wxVariant> &values, wxUIntPtr data )
|
||||
{
|
||||
wxDataViewListStoreLine *line = new wxDataViewListStoreLine( data );
|
||||
line->m_values = values;
|
||||
@@ -1729,7 +1729,7 @@ void wxDataViewListStore::PrependItem( const wxVector<wxVariant> &values, wxClie
|
||||
}
|
||||
|
||||
void wxDataViewListStore::InsertItem( unsigned int row, const wxVector<wxVariant> &values,
|
||||
wxClientData *data )
|
||||
wxUIntPtr data )
|
||||
{
|
||||
wxDataViewListStoreLine *line = new wxDataViewListStoreLine( data );
|
||||
line->m_values = values;
|
||||
|
||||
Reference in New Issue
Block a user