Fix a few minor Coverity warnings
This commit is contained in:
parent
ee6c8b60ac
commit
c092e3f8b7
|
@ -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 } )
|
||||
|
|
|
@ -55,7 +55,8 @@ public:
|
|||
m_position( aPoint ),
|
||||
m_connection( aConnection ),
|
||||
m_isActive( false ),
|
||||
m_isHover( false )
|
||||
m_isHover( false ),
|
||||
m_gridFree( false )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue