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:
@@ -27,7 +27,7 @@ class WXDLLIMPEXP_PROPGRID wxPGPropArgCls
|
||||
public:
|
||||
wxPGPropArgCls( const wxPGProperty* property )
|
||||
{
|
||||
m_ptr.property = (wxPGProperty*) property;
|
||||
m_ptr.property = const_cast<wxPGProperty*>(property);
|
||||
m_flags = IsProperty;
|
||||
}
|
||||
wxPGPropArgCls( const wxString& str )
|
||||
|
Reference in New Issue
Block a user