]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid ICE with MinGW 2.95.3.
authorMattia Barbon <mbarbon@cpan.org>
Sat, 23 Apr 2005 22:13:55 +0000 (22:13 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 23 Apr 2005 22:13:55 +0000 (22:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/notebook.cpp

index 669d99dadec3c0d321bd1aa2f0d9e89ee3b57c82..925dee0c9ad3259c508968efbec1bbb25cd2bb36 100644 (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 )
         {