Fix a few Coverity warnings
This commit is contained in:
parent
db66419f02
commit
31be74b8b3
|
@ -62,6 +62,7 @@ void VC_SETTINGS::Reset()
|
|||
m_cursorCaptured = false;
|
||||
m_snappingEnabled = true;
|
||||
m_grabMouse = false;
|
||||
m_focusFollowSchPcb = false;
|
||||
m_autoPanEnabled = false;
|
||||
m_autoPanSettingEnabled = false;
|
||||
m_autoPanMargin = 0.02f;
|
||||
|
|
|
@ -283,6 +283,9 @@ int EESCHEMA_JOBS_HANDLER::JobExportPythonBom( JOB* aJob )
|
|||
{
|
||||
JOB_EXPORT_SCH_PYTHONBOM* aNetJob = dynamic_cast<JOB_EXPORT_SCH_PYTHONBOM*>( aJob );
|
||||
|
||||
if( !aNetJob )
|
||||
return CLI::EXIT_CODES::ERR_UNKNOWN;
|
||||
|
||||
SCHEMATIC* sch = EESCHEMA_HELPERS::LoadSchematic( aNetJob->m_filename, SCH_IO_MGR::SCH_KICAD );
|
||||
|
||||
if( sch == nullptr )
|
||||
|
@ -449,6 +452,9 @@ int EESCHEMA_JOBS_HANDLER::JobSymExportSvg( JOB* aJob )
|
|||
{
|
||||
JOB_SYM_EXPORT_SVG* svgJob = dynamic_cast<JOB_SYM_EXPORT_SVG*>( aJob );
|
||||
|
||||
if( !svgJob )
|
||||
return CLI::EXIT_CODES::ERR_UNKNOWN;
|
||||
|
||||
wxFileName fn( svgJob->m_libraryPath );
|
||||
fn.MakeAbsolute();
|
||||
|
||||
|
@ -512,6 +518,9 @@ int EESCHEMA_JOBS_HANDLER::JobSymUpgrade( JOB* aJob )
|
|||
{
|
||||
JOB_SYM_UPGRADE* upgradeJob = dynamic_cast<JOB_SYM_UPGRADE*>( aJob );
|
||||
|
||||
if( !upgradeJob )
|
||||
return CLI::EXIT_CODES::ERR_UNKNOWN;
|
||||
|
||||
wxFileName fn( upgradeJob->m_libraryPath );
|
||||
fn.MakeAbsolute();
|
||||
|
||||
|
|
|
@ -156,7 +156,9 @@ class SIGNALS_GRID_TRICKS : public GRID_TRICKS
|
|||
public:
|
||||
SIGNALS_GRID_TRICKS( SIM_PLOT_FRAME* aParent, WX_GRID* aGrid ) :
|
||||
GRID_TRICKS( aGrid ),
|
||||
m_parent( aParent )
|
||||
m_parent( aParent ),
|
||||
m_menuRow( 0 ),
|
||||
m_menuCol( 0 )
|
||||
{}
|
||||
|
||||
protected:
|
||||
|
|
|
@ -244,7 +244,8 @@ public:
|
|||
m_fontResDictHandle( 0 ),
|
||||
m_pageStreamHandle( 0 ),
|
||||
m_streamLengthHandle( 0 ),
|
||||
m_workFile( nullptr )
|
||||
m_workFile( nullptr ),
|
||||
m_totalOutlineNodes( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue