Initialize variables properly

Fixes https://gitlab.com/kicad/code/kicad/issues/4919
This commit is contained in:
Ian McInerney 2020-07-18 00:36:28 +01:00
parent aa7ab46a06
commit cc688a3e1d
2 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,8 @@ PAGED_DIALOG::PAGED_DIALOG( wxWindow* aParent, const wxString& aTitle, bool aUse
m_errorCtrl( nullptr ),
m_errorRow( 0 ),
m_errorCol( 0 ),
m_auxiliaryButton( nullptr )
m_auxiliaryButton( nullptr ),
m_resetButton( nullptr )
{
auto mainSizer = new wxBoxSizer( wxVERTICAL );
SetSizer( mainSizer );

View File

@ -30,7 +30,7 @@
// Saved dialog settings
DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB_SAVED_STATE
DIALOG_UPDATE_FROM_PCB::s_savedDialogState{ true, true, true, true, false };
DIALOG_UPDATE_FROM_PCB::s_savedDialogState{ true, true, true, true, false, false };
DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB( SCH_EDIT_FRAME* aParent )
: DIALOG_UPDATE_FROM_PCB_BASE( aParent ),