From 67f30682ceb8cd31fda734c7fea884f53b1098fb Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 31 Dec 2008 18:52:32 +0000 Subject: [PATCH] replace dynamic_cast<> with wxDynamicCast git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/init.cpp | 2 +- src/common/statbar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/init.cpp b/src/common/init.cpp index 934ba275d2..d9d3cf0dc7 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -269,7 +269,7 @@ static bool DoCommonPostInit() } // yes; test if it implements Clone() correctly - wxEvent* test = dynamic_cast(ci->CreateObject()); + wxEvent* test = wxDynamicCast(ci->CreateObject(),wxEvent); if (test == NULL) { wxLogWarning("The event class '%s' should have a DECLARE_DYNAMIC_CLASS macro!", diff --git a/src/common/statbar.cpp b/src/common/statbar.cpp index 9db337c9a5..30af252d14 100644 --- a/src/common/statbar.cpp +++ b/src/common/statbar.cpp @@ -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(GetParent()); + wxFrame *frame = wxDynamicCast(GetParent(), wxFrame); if ( frame && frame->GetStatusBar() == this ) frame->SetStatusBar(NULL); } -- 2.45.2