Fix uninitialized variable.

This commit is contained in:
Jeff Young 2022-12-05 14:42:05 +00:00
parent b7d41e0e56
commit 295ef6588d
2 changed files with 3 additions and 3 deletions

View File

@ -348,8 +348,8 @@ NUMERIC_EVALUATOR::Token NUMERIC_EVALUATOR::getToken()
break;
}
double siScaler;
Unit convertFrom;
double siScaler = 1.0;
Unit convertFrom = Unit::Invalid;
if( ch == 0 )
{

View File

@ -83,7 +83,7 @@ class DRC_ENGINE : public UNITS_PROVIDER
{
public:
DRC_ENGINE( BOARD* aBoard = nullptr, BOARD_DESIGN_SETTINGS* aSettings = nullptr );
~DRC_ENGINE();
virtual ~DRC_ENGINE();
void SetBoard( BOARD* aBoard ) { m_board = aBoard; }
BOARD* GetBoard() const { return m_board; }