Remove unnecessary casts (they're just casting to a superclass).

This commit is contained in:
Jeff Young 2020-01-12 20:26:07 +00:00
parent 836c1ea56e
commit 3a1585718f
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ void DIALOG_EDIT_ONE_FIELD::updateText( EDA_TEXT* aText )
DIALOG_LIB_EDIT_ONE_FIELD::DIALOG_LIB_EDIT_ONE_FIELD(
SCH_BASE_FRAME* aParent, const wxString& aTitle, const LIB_FIELD* aField )
: DIALOG_EDIT_ONE_FIELD( aParent, aTitle, static_cast<const EDA_TEXT*>( aField ) )
: DIALOG_EDIT_ONE_FIELD( aParent, aTitle, aField )
{
m_fieldId = aField->GetId();
@ -217,7 +217,7 @@ DIALOG_LIB_EDIT_ONE_FIELD::DIALOG_LIB_EDIT_ONE_FIELD(
DIALOG_SCH_EDIT_ONE_FIELD::DIALOG_SCH_EDIT_ONE_FIELD(
SCH_BASE_FRAME* aParent, const wxString& aTitle, const SCH_FIELD* aField )
: DIALOG_EDIT_ONE_FIELD( aParent, aTitle, static_cast<const EDA_TEXT*>( aField ) )
: DIALOG_EDIT_ONE_FIELD( aParent, aTitle, aField )
{
m_fieldId = aField->GetId();