Fix a few Coverity warnings (uninitialized vars). No actual code change

This commit is contained in:
jean-pierre charras 2025-05-01 15:38:50 +02:00
parent 3c9d696c68
commit b3c6a03171
4 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,7 @@ EDA_SHAPE::EDA_SHAPE( const SHAPE& aShape ) :
m_endsSwapped( false ),
m_stroke( 0, LINE_STYLE::DEFAULT, COLOR4D::UNSPECIFIED ),
m_fill(),
m_hatchingDirty( true ),
m_rectangleHeight( 0 ),
m_rectangleWidth( 0 ),
m_segmentLength( 0 ),

View File

@ -676,6 +676,7 @@ PCBEXPR_COMPILER::PCBEXPR_COMPILER( LIBEVAL::UNIT_RESOLVER* aUnitResolver )
PCBEXPR_EVALUATOR::PCBEXPR_EVALUATOR( LIBEVAL::UNIT_RESOLVER* aUnitResolver ) :
m_result( 0 ),
m_units( EDA_UNITS::MM ),
m_compiler( aUnitResolver ),
m_ucode(),
m_errorStatus()

View File

@ -127,6 +127,7 @@ public:
m_FootprintViewerZoom( 1.0 ),
m_FootprintViewerAutoZoomOnSelect( true )
{
m_ViewersDisplay.m_Use45Limit = false;
m_ViewersDisplay.m_DisplayGraphicsFill = true;
m_ViewersDisplay.m_DisplayTextFill = true;
m_ViewersDisplay.m_DisplayPadNumbers = true;

View File

@ -42,7 +42,8 @@ class PCB_VIEWER_TOOLS : public TOOL_INTERACTIVE
public:
PCB_VIEWER_TOOLS() :
TOOL_INTERACTIVE( "pcbnew.PCBViewerTools" ),
m_footprintFrame( false )
m_footprintFrame( false ),
m_isDefaultTool( false )
{}
~PCB_VIEWER_TOOLS() override {}