From 3a1585718ff5e620c215356f308584eb2d1a858a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 12 Jan 2020 20:26:07 +0000 Subject: [PATCH] Remove unnecessary casts (they're just casting to a superclass). --- eeschema/dialogs/dialog_edit_one_field.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/dialogs/dialog_edit_one_field.cpp b/eeschema/dialogs/dialog_edit_one_field.cpp index 853d83c6f7..e0cf153968 100644 --- a/eeschema/dialogs/dialog_edit_one_field.cpp +++ b/eeschema/dialogs/dialog_edit_one_field.cpp @@ -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( 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( aField ) ) + : DIALOG_EDIT_ONE_FIELD( aParent, aTitle, aField ) { m_fieldId = aField->GetId();