From 2f8cc194c14523e59439f643022d95d48e7ceea3 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sat, 17 Dec 2022 23:25:59 +0000 Subject: [PATCH] Initialize variables inside file dialog customizer classes --- eeschema/widgets/symbol_filedlg_save_as.h | 12 ++++++------ kicad/widgets/filedlg_new_project.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/eeschema/widgets/symbol_filedlg_save_as.h b/eeschema/widgets/symbol_filedlg_save_as.h index a2dd92e7db..792f325127 100644 --- a/eeschema/widgets/symbol_filedlg_save_as.h +++ b/eeschema/widgets/symbol_filedlg_save_as.h @@ -67,14 +67,14 @@ public: SYMBOL_SAVEAS_TYPE GetOption() const { return m_option; } private: - SYMBOL_SAVEAS_TYPE m_option; + SYMBOL_SAVEAS_TYPE m_option = SYMBOL_SAVEAS_TYPE::NORMAL_SAVE_AS; - wxFileDialogRadioButton* m_simpleSaveAs; - wxFileDialogRadioButton* m_replaceTableEntry; - wxFileDialogRadioButton* m_addGlobalTableEntry; - wxFileDialogRadioButton* m_addProjectTableEntry; + wxFileDialogRadioButton* m_simpleSaveAs = nullptr; + wxFileDialogRadioButton* m_replaceTableEntry = nullptr; + wxFileDialogRadioButton* m_addGlobalTableEntry = nullptr; + wxFileDialogRadioButton* m_addProjectTableEntry = nullptr; wxDECLARE_NO_COPY_CLASS( SYMBOL_FILEDLG_SAVE_AS ); }; -#endif \ No newline at end of file +#endif diff --git a/kicad/widgets/filedlg_new_project.h b/kicad/widgets/filedlg_new_project.h index dc41912f77..486851efcd 100644 --- a/kicad/widgets/filedlg_new_project.h +++ b/kicad/widgets/filedlg_new_project.h @@ -42,11 +42,11 @@ public: bool GetCreateNewDir() const { return m_createNewDir; } private: - bool m_createNewDir; + bool m_createNewDir = true; - wxFileDialogCheckBox* m_cb; + wxFileDialogCheckBox* m_cb = nullptr; wxDECLARE_NO_COPY_CLASS( FILEDLG_NEW_PROJECT ); }; -#endif \ No newline at end of file +#endif