]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/statbar.cpp
s/wxWindows/wxWidgets; update wx-dev mail address
[wxWidgets.git] / src / common / statbar.cpp
index 9db337c9a5f65a821fd3f6dab6c493f3553b5dbf..30af252d1442cde35fe99278fb0440b9c585614c 100644 (file)
@@ -58,7 +58,7 @@ wxStatusBarBase::~wxStatusBarBase()
 {
     // notify the frame that it doesn't have a status bar any longer to avoid
     // dangling pointers
-    wxFrame *frame = dynamic_cast<wxFrame*>(GetParent());
+    wxFrame *frame = wxDynamicCast(GetParent(), wxFrame);
     if ( frame && frame->GetStatusBar() == this )
         frame->SetStatusBar(NULL);
 }