Replace C-style cast with const_cast<> in wxUniv
Don't use C casts to remove const-ness (avoids gcc -Wcast-qual).
This commit is contained in:
parent
ca7fcfe9c3
commit
dca6f310bb
1 changed files with 4 additions and 1 deletions
|
|
@ -79,7 +79,10 @@ public:
|
|||
return m_indexAccel == -1 ? wxT('\0') : (wxChar)m_label[m_indexAccel];
|
||||
}
|
||||
|
||||
virtual wxWindow *GetInputWindow() const wxOVERRIDE { return (wxWindow*)this; }
|
||||
virtual wxWindow *GetInputWindow() const wxOVERRIDE
|
||||
{
|
||||
return const_cast<wxControl*>(this);
|
||||
}
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue