Avoid ICE with MinGW 2.95.3.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2005-04-23 22:13:55 +00:00
parent 1485913ef5
commit 3c99602b79

View File

@@ -964,8 +964,9 @@ void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
//
wxWindow * const parent = GetParent();
const bool isFromParent = event.GetEventObject() == parent;
const bool isFromSelf = event.GetEventObject() == this;
// the wxObject* casts are required to avoid MinGW GCC 2.95.3 ICE
const bool isFromParent = event.GetEventObject() == (wxObject*) parent;
const bool isFromSelf = event.GetEventObject() == (wxObject*) this;
if ( isFromParent || isFromSelf )
{