X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25250d335f869088a3551db226f25079c28f65fb..f1430ac7663ee4dd0ca18ffd89d924da84c97d68:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 7bc5cd914f..0d31e326f5 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -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(this) = evt; m_x = evt.m_x; m_y = evt.m_y; @@ -2419,8 +2422,6 @@ protected: // Is event handler enabled? bool m_enabled; - // Avoid adding events from another thread during dtor - bool m_beingDeleted; // The user data: either an object which will be deleted by the container