Eliminate -Wcast-qual warnings with GCC and Clang
Use const_cast, mutable, and various other changes to avoid -Wcast-qual
This commit is contained in:
@@ -3913,8 +3913,8 @@ int wxDataViewMainWindow::RecalculateCount() const
|
||||
{
|
||||
if (IsVirtualList())
|
||||
{
|
||||
wxDataViewVirtualListModel *list_model =
|
||||
(wxDataViewVirtualListModel*) GetModel();
|
||||
const wxDataViewVirtualListModel* list_model =
|
||||
static_cast<const wxDataViewVirtualListModel*>(GetModel());
|
||||
|
||||
return list_model->GetCount();
|
||||
}
|
||||
|
Reference in New Issue
Block a user