Another switch from wxDynamicCast to the normal c++ dynamic_cast
This commit is contained in:
parent
535acbb240
commit
2d5c702a7f
|
@ -1980,7 +1980,7 @@ wxPropertySheetDialog * MainFrame::LoadXRCropertySheetDialog(const char * name)
|
||||||
wxString dname = wxString::FromUTF8(name);
|
wxString dname = wxString::FromUTF8(name);
|
||||||
//Seems like the only way to do this
|
//Seems like the only way to do this
|
||||||
wxObject * anObject = wxXmlResource::Get()->LoadObject(this, dname, wxEmptyString);
|
wxObject * anObject = wxXmlResource::Get()->LoadObject(this, dname, wxEmptyString);
|
||||||
wxPropertySheetDialog * dialog = wxDynamicCast(anObject, wxPropertySheetDialog);
|
wxPropertySheetDialog * dialog = dynamic_cast<wxPropertySheetDialog*>(anObject);
|
||||||
CheckThrowXRCError(dialog,name);
|
CheckThrowXRCError(dialog,name);
|
||||||
|
|
||||||
/* wx-2.9.1 doesn't set parent for propertysheetdialogs for some reason */
|
/* wx-2.9.1 doesn't set parent for propertysheetdialogs for some reason */
|
||||||
|
|
Loading…
Reference in New Issue