Fix a few minor Coverity warnings

This commit is contained in:
jean-pierre charras 2020-10-26 10:46:08 +01:00
parent ee6c8b60ac
commit c092e3f8b7
3 changed files with 6 additions and 3 deletions

View File

@ -120,7 +120,7 @@ PANEL_PREV_3D::PANEL_PREV_3D( wxWindow* aParent, PCB_BASE_FRAME* aFrame, MODULE*
m_SizerPanelView->Add( m_previewPane, 1, wxEXPAND, 5 );
// Tell the canvas about the infobar
if( m_previewPane && m_infobar )
if( m_infobar )
m_previewPane->SetInfoBar( m_infobar );
for( wxEventType eventType : { wxEVT_MENU_OPEN, wxEVT_MENU_CLOSE, wxEVT_MENU_HIGHLIGHT } )

View File

@ -55,7 +55,8 @@ public:
m_position( aPoint ),
m_connection( aConnection ),
m_isActive( false ),
m_isHover( false )
m_isHover( false ),
m_gridFree( false )
{
}

View File

@ -45,7 +45,9 @@
class DRC_TEST_PROVIDER_SILK_CLEARANCE : public DRC_TEST_PROVIDER
{
public:
DRC_TEST_PROVIDER_SILK_CLEARANCE ()
DRC_TEST_PROVIDER_SILK_CLEARANCE ():
m_board( nullptr ),
m_largestClearance( 0 )
{
}