replace dynamic_cast<> with wxDynamicCast
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fd3ece5784
commit
67f30682ce
@ -269,7 +269,7 @@ static bool DoCommonPostInit()
|
||||
}
|
||||
|
||||
// yes; test if it implements Clone() correctly
|
||||
wxEvent* test = dynamic_cast<wxEvent*>(ci->CreateObject());
|
||||
wxEvent* test = wxDynamicCast(ci->CreateObject(),wxEvent);
|
||||
if (test == NULL)
|
||||
{
|
||||
wxLogWarning("The event class '%s' should have a DECLARE_DYNAMIC_CLASS macro!",
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user