From b2e3be1c69b9d3382f6245b5c4e7433c6fd79766 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 12 Apr 2005 07:33:20 +0000 Subject: [PATCH] wxFrameBase doesn't have wxRTTI so don't test for it, or wxDynamicCast (for example) will erroneously succeed and return the wrong cast object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/statbar.cpp | 2 +- src/common/tbarbase.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/statbar.cpp b/src/common/statbar.cpp index 0544a98b67..5d37684b7d 100644 --- a/src/common/statbar.cpp +++ b/src/common/statbar.cpp @@ -65,7 +65,7 @@ wxStatusBarBase::~wxStatusBarBase() // notify the frame that it doesn't have a status bar any longer to avoid // dangling pointers - wxFrameBase *frame = wxDynamicCast(GetParent(), wxFrameBase); + wxFrame *frame = wxDynamicCast(GetParent(), wxFrame); if ( frame && frame->GetStatusBar() == this ) { frame->SetStatusBar(NULL); diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index b7dfb3c5ba..fd1e4d2bdd 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -451,7 +451,7 @@ wxToolBarBase::~wxToolBarBase() // notify the frame that it doesn't have a tool bar any longer to avoid // dangling pointers - wxFrameBase *frame = wxDynamicCast(GetParent(), wxFrameBase); + wxFrame *frame = wxDynamicCast(GetParent(), wxFrame); if ( frame && frame->GetToolBar() == this ) { frame->SetToolBar(NULL);