]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix after last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Apr 2007 01:29:16 +0000 (01:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Apr 2007 01:29:16 +0000 (01:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/winuniv.cpp

index c5f8c6e654a13f70c2c5b8418092081ea3efc321..6a03329594c297fbc4457a3188b9af76b537e134 100644 (file)
@@ -1416,10 +1416,10 @@ void wxWindow::OnChar(wxKeyEvent& event)
     if ( !event.HasModifiers() && event.GetKeyCode() == WXK_RETURN )
     {
         wxTopLevelWindow *
-            tlw = wxDynamicCast(wxTopLevelWindow *, wxGetTopLevelParent());
+            tlw = wxDynamicCast(wxGetTopLevelParent(this), wxTopLevelWindow);
         if ( tlw )
         {
-            wxButton *btn = wxDynamicCast(wxButton *, tlw->GetDefaultItem());
+            wxButton *btn = wxDynamicCast(tlw->GetDefaultItem(), wxButton);
             if ( btn )
             {
                 wxCommandEvent evt(wxEVT_COMMAND_BUTTON_CLICKED, btn->GetId());