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 )
|
||||
|
@@ -571,7 +571,7 @@ protected:
|
||||
|
||||
// Returns property by its label.
|
||||
wxPGProperty* BaseGetPropertyByLabel( const wxString& label,
|
||||
wxPGProperty* parent = NULL ) const;
|
||||
const wxPGProperty* parent = NULL ) const;
|
||||
|
||||
// Unselect sub-properties.
|
||||
void DoRemoveChildrenFromSelection(wxPGProperty* p, bool recursive,
|
||||
|
Reference in New Issue
Block a user