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:
@@ -103,7 +103,7 @@ CFRunLoopRef wxGUIEventLoop::CFGetCurrentRunLoop() const
|
|||||||
|
|
||||||
wxModalEventLoop::wxModalEventLoop(wxWindow *modalWindow)
|
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" );
|
wxASSERT_MSG( m_modalWindow != NULL, "must pass in a toplevel window for modal event loop" );
|
||||||
m_modalNativeWindow = m_modalWindow->GetWXWindow();
|
m_modalNativeWindow = m_modalWindow->GetWXWindow();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user