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:
@@ -79,7 +79,10 @@ public:
|
|||||||
return m_indexAccel == -1 ? wxT('\0') : (wxChar)m_label[m_indexAccel];
|
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:
|
protected:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
|
Reference in New Issue
Block a user