From 83fb06ff75eabe4ef5aa96c4444214e17187cf83 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 15 Sep 2022 10:50:14 +0200 Subject: [PATCH] Fix compil and Coverity warnings. --- eeschema/dialogs/dialog_netlist.cpp | 3 ++- pcbnew/widgets/pcb_search_pane.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eeschema/dialogs/dialog_netlist.cpp b/eeschema/dialogs/dialog_netlist.cpp index f93ab93c08..83bfae125b 100644 --- a/eeschema/dialogs/dialog_netlist.cpp +++ b/eeschema/dialogs/dialog_netlist.cpp @@ -130,7 +130,7 @@ private: NETLIST_TYPE_ID aNetTypeId ); void InstallPageSpice(); void InstallPageSpiceModel(); - + bool TransferDataFromWindow() override; void NetlistUpdateOpt(); @@ -226,6 +226,7 @@ NETLIST_PAGE_DIALOG::NETLIST_PAGE_DIALOG( wxNotebook* aParent, const wxString& a m_IdNetType = aIdNetType; m_pageNetFmtName = aTitle; m_CommandStringCtrl = nullptr; + m_CurSheetAsRoot = nullptr; m_TitleStringCtrl = nullptr; m_SaveAllVoltages = nullptr; m_SaveAllCurrents = nullptr; diff --git a/pcbnew/widgets/pcb_search_pane.cpp b/pcbnew/widgets/pcb_search_pane.cpp index fb4fc46f8d..29297068b7 100644 --- a/pcbnew/widgets/pcb_search_pane.cpp +++ b/pcbnew/widgets/pcb_search_pane.cpp @@ -23,7 +23,7 @@ PCB_SEARCH_PANE::PCB_SEARCH_PANE( PCB_EDIT_FRAME* aFrame ) : - m_pcbFrame( aFrame ), SEARCH_PANE( aFrame ) + SEARCH_PANE( aFrame ), m_pcbFrame( aFrame ) { m_brd = m_pcbFrame->GetBoard();