using wx dynamic cast

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-05-19 07:23:33 +00:00
parent 6d70083b3e
commit b79aa5000f

View File

@@ -103,7 +103,7 @@ CFRunLoopRef wxGUIEventLoop::CFGetCurrentRunLoop() const
wxModalEventLoop::wxModalEventLoop(wxWindow *modalWindow)
{
m_modalWindow = dynamic_cast<wxNonOwnedWindow*> (modalWindow);
m_modalWindow = wxDynamicCast(modalWindow, wxNonOwnedWindow);
wxASSERT_MSG( m_modalWindow != NULL, "must pass in a toplevel window for modal event loop" );
m_modalNativeWindow = m_modalWindow->GetWXWindow();
}