Fix a few Coverity warnings.
This commit is contained in:
parent
9e4125c451
commit
9c99286385
|
@ -470,6 +470,8 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
|
||||||
"new file format cannot be opened with previous versions of KiCad." ) );
|
"new file format cannot be opened with previous versions of KiCad." ) );
|
||||||
newFileFormatDlg.ShowCheckBox( _( "Do not show this dialog again." ) );
|
newFileFormatDlg.ShowCheckBox( _( "Do not show this dialog again." ) );
|
||||||
newFileFormatDlg.ShowModal();
|
newFileFormatDlg.ShowModal();
|
||||||
|
|
||||||
|
if( cfg )
|
||||||
cfg->m_Appearance.show_sexpr_file_convert_warning =
|
cfg->m_Appearance.show_sexpr_file_convert_warning =
|
||||||
!newFileFormatDlg.IsCheckBoxChecked();
|
!newFileFormatDlg.IsCheckBoxChecked();
|
||||||
}
|
}
|
||||||
|
|
|
@ -471,6 +471,7 @@ SCH_SHEET* SCH_SEXPR_PLUGIN::Load( const wxString& aFileName, KIWAY* aKiway,
|
||||||
|
|
||||||
// If we got here, the schematic loaded successfully.
|
// If we got here, the schematic loaded successfully.
|
||||||
sheet = newSheet.release();
|
sheet = newSheet.release();
|
||||||
|
m_rootSheet = nullptr; // Quiet Coverity warning.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -854,7 +854,7 @@ int SCH_EDITOR_CONTROL::UpdateNetHighlighting( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
SCH_CONNECTION* pin_conn = comp->GetConnectionForPin( pin, *g_CurrentSheet );
|
SCH_CONNECTION* pin_conn = comp->GetConnectionForPin( pin, *g_CurrentSheet );
|
||||||
|
|
||||||
if( pin_conn && pin_conn->Name( false ) == selectedNetName )
|
if( comp && pin_conn && pin_conn->Name( false ) == selectedNetName )
|
||||||
{
|
{
|
||||||
comp->BrightenPin( pin );
|
comp->BrightenPin( pin );
|
||||||
redraw = true;
|
redraw = true;
|
||||||
|
|
|
@ -46,6 +46,7 @@ const int pcbnewSchemaVersion = 0;
|
||||||
PCBNEW_SETTINGS::PCBNEW_SETTINGS() : APP_SETTINGS_BASE( "pcbnew", pcbnewSchemaVersion ),
|
PCBNEW_SETTINGS::PCBNEW_SETTINGS() : APP_SETTINGS_BASE( "pcbnew", pcbnewSchemaVersion ),
|
||||||
m_Use45DegreeGraphicSegments( false ),
|
m_Use45DegreeGraphicSegments( false ),
|
||||||
m_FlipLeftRight( false ),
|
m_FlipLeftRight( false ),
|
||||||
|
m_ShowPageLimits( true ),
|
||||||
m_MagneticPads( MAGNETIC_OPTIONS::CAPTURE_CURSOR_IN_TRACK_TOOL ),
|
m_MagneticPads( MAGNETIC_OPTIONS::CAPTURE_CURSOR_IN_TRACK_TOOL ),
|
||||||
m_MagneticTracks( MAGNETIC_OPTIONS::CAPTURE_CURSOR_IN_TRACK_TOOL ),
|
m_MagneticTracks( MAGNETIC_OPTIONS::CAPTURE_CURSOR_IN_TRACK_TOOL ),
|
||||||
m_MagneticGraphics( true ),
|
m_MagneticGraphics( true ),
|
||||||
|
|
Loading…
Reference in New Issue