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:
@@ -1936,7 +1936,7 @@ void wxPropertyGrid::DrawExpanderButton( wxDC& dc, const wxRect& rect,
|
||||
// Hopefully this does not cause problems.
|
||||
#if (wxPG_USE_RENDERER_NATIVE)
|
||||
wxRendererNative::Get().DrawTreeItemButton(
|
||||
(wxWindow*)this,
|
||||
const_cast<wxPropertyGrid*>(this),
|
||||
dc,
|
||||
r,
|
||||
wxCONTROL_EXPANDED
|
||||
@@ -1952,7 +1952,7 @@ void wxPropertyGrid::DrawExpanderButton( wxDC& dc, const wxRect& rect,
|
||||
{
|
||||
#if (wxPG_USE_RENDERER_NATIVE)
|
||||
wxRendererNative::Get().DrawTreeItemButton(
|
||||
(wxWindow*)this,
|
||||
const_cast<wxPropertyGrid*>(this),
|
||||
dc,
|
||||
r,
|
||||
0
|
||||
|
Reference in New Issue
Block a user