work around Borland compilation errors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-10-20 09:00:19 +00:00
parent ddc7f0c975
commit 3232da9d90
3 changed files with 10 additions and 4 deletions

View File

@@ -908,10 +908,13 @@ public:
// example)
wxKeyEvent& operator=(const wxKeyEvent& evt)
{
if (&evt != this)
if ( &evt != this )
{
wxEvent::operator=(evt);
wxKeyboardState::operator=(evt);
// Borland C++ 5.82 doesn't compile an explicit call to an
// implicitly defined operator=() so need to do it this way:
*static_cast<wxKeyboardState *>(this) = evt;
m_x = evt.m_x;
m_y = evt.m_y;