Fix a few Coverity warnings (not initialized vars)
This commit is contained in:
parent
bd71cec826
commit
3be8bfe193
|
@ -67,6 +67,8 @@ DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP( SCH_EDIT_FRAME* aFrame ) :
|
|||
}, _( "Field Name Templates" ) );
|
||||
|
||||
m_treebook->AddPage( new wxPanel( GetTreebook() ), _( "Electrical Rules" ) );
|
||||
|
||||
m_severitiesPage = m_treebook->GetPageCount();
|
||||
m_treebook->AddLazySubPage(
|
||||
[this]( wxWindow* aParent ) -> wxWindow*
|
||||
{
|
||||
|
|
|
@ -55,6 +55,7 @@ const wxChar* NL_SCHEMATIC_PLUGIN_IMPL::m_logTrace = wxT( "KI_TRACE_NL_SCHEMATIC
|
|||
NL_SCHEMATIC_PLUGIN_IMPL::NL_SCHEMATIC_PLUGIN_IMPL() :
|
||||
CNavigation3D( false, false ),
|
||||
m_viewport2D( nullptr ),
|
||||
m_view( nullptr ),
|
||||
m_isMoving( false ),
|
||||
m_viewportWidth( 0.0 )
|
||||
{
|
||||
|
|
|
@ -890,8 +890,11 @@ SCH_LABEL_BASE* LTSPICE_SCH_PARSER::CreateSCH_LABEL( KICAD_T aType, const VECTOR
|
|||
UNIMPLEMENTED_FOR( aType );
|
||||
}
|
||||
|
||||
label->SetPosition( ToKicadCoords( aOffset ) + m_originOffset );
|
||||
label->SetVisible( true );
|
||||
if( label )
|
||||
{
|
||||
label->SetPosition( ToKicadCoords( aOffset ) + m_originOffset );
|
||||
label->SetVisible( true );
|
||||
}
|
||||
|
||||
return label;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue