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:
Vadim Zeitlin
2020-08-30 21:05:43 +02:00
parent ca7fcfe9c3
commit dca6f310bb

View File

@@ -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