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:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user