Fix minor Coverity and compil warnings

This commit is contained in:
jean-pierre charras 2023-10-15 15:55:31 +02:00
parent fd887ba929
commit 7efd414519
3 changed files with 4 additions and 3 deletions

View File

@ -156,12 +156,12 @@ DIALOG_IMPORT_GFX_SCH::~DIALOG_IMPORT_GFX_SCH()
if( SYMBOL_EDIT_FRAME* symFrame = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_parent ) )
{
SYMBOL_EDITOR_SETTINGS* cfg = m_parent->libeditconfig();
SYMBOL_EDITOR_SETTINGS* cfg = symFrame->libeditconfig();
saveToSettings( cfg );
}
else if( SCH_EDIT_FRAME* schFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_parent ) )
{
EESCHEMA_SETTINGS* cfg = m_parent->eeconfig();
EESCHEMA_SETTINGS* cfg = schFrame->eeconfig();
saveToSettings( cfg );
}

View File

@ -525,7 +525,7 @@ public:
{}
LSEQ( std::initializer_list<PCB_LAYER_ID> aLayers ) :
BASE_SEQ( aLayers )
BASE_SEQ( aLayers ), m_index( 0 )
{}
void Rewind() { m_index = 0; }

View File

@ -375,6 +375,7 @@ PCB_GENERATOR_MEANDERS::PCB_GENERATOR_MEANDERS( BOARD_ITEM* aParent, PCB_LAYER_I
m_spacing = pcbIUScale.mmToIU( 0.6 );
m_targetLength = pcbIUScale.mmToIU( 100 );
m_targetSkew = pcbIUScale.mmToIU( 0 );
m_overrideCustomRules = false;
m_end = VECTOR2I( pcbIUScale.mmToIU( 10 ), 0 );
m_cornerRadiusPercentage = 100;
m_initialSide = PNS::MEANDER_SIDE_DEFAULT;