Fix some more uninitialized warnings

From PVS Studio
This commit is contained in:
Marek Roszko 2021-05-30 20:05:37 -04:00
parent 382dca4e6f
commit a7d1ef9927
2 changed files with 11 additions and 7 deletions

View File

@ -33,13 +33,17 @@ const int pcbCalculatorSchemaVersion = 0;
PCB_CALCULATOR_SETTINGS::PCB_CALCULATOR_SETTINGS() :
APP_SETTINGS_BASE( "pcb_calculator", pcbCalculatorSchemaVersion )
APP_SETTINGS_BASE( "pcb_calculator", pcbCalculatorSchemaVersion ),
m_Attenuators(),
m_BoardClassUnits( 0 ),
m_ColorCodeTolerance( 0 ),
m_Electrical(),
m_LastPage( 0 ),
m_Regulators(),
m_TrackWidth(),
m_TransLine(),
m_ViaSize()
{
// Make Coverity happy:
m_BoardClassUnits = 0;
m_ColorCodeTolerance = 0;
m_LastPage = 0;
// Build settings:
m_params.emplace_back( new PARAM<int>( "board_class_units", &m_BoardClassUnits, 0 ) );

View File

@ -43,7 +43,7 @@ class CADSTAR_PCB_ARCHIVE_PARSER : public CADSTAR_ARCHIVE_PARSER
{
public:
explicit CADSTAR_PCB_ARCHIVE_PARSER( wxString aFilename )
: Filename( aFilename ), CADSTAR_ARCHIVE_PARSER()
: Filename( aFilename ), Header(), Assignments(), CADSTAR_ARCHIVE_PARSER()
{
KiCadUnitMultiplier = 10; // assume hundredth micron
}