]> git.saurik.com Git - wxWidgets.git/commitdiff
using wx dynamic cast
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 May 2010 07:23:33 +0000 (07:23 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 May 2010 07:23:33 +0000 (07:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/evtloop.cpp

index 6ea3f85fac468748d45862f529de8107d20d91fa..adc340a7143b3fd8fda57b87f43a9bd916532b91 100644 (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();
 }