Get rid of unnecessary const casts
A pointer to unqualified type are converted implicitly to a more cv-qualified type.
This commit is contained in:
parent
b064608c2a
commit
f4e37e57e4
7 changed files with 7 additions and 7 deletions
|
|
@ -771,7 +771,7 @@ bool PROPNAME::OnEvent( wxPropertyGrid* propgrid, \
|
|||
wxWindow* primary, wxEvent& event ) \
|
||||
{ \
|
||||
if ( event.GetEventType() == wxEVT_BUTTON ) \
|
||||
return OnButtonClick(propgrid,primary, const_cast<const wxChar*>(CUSTBUTTXT)); \
|
||||
return OnButtonClick(propgrid,primary, CUSTBUTTXT); \
|
||||
return false; \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue