Uninitialized variables.

This commit is contained in:
Jeff Young 2025-06-16 11:50:00 +01:00
parent ca1db93013
commit 8d1119e5dd
5 changed files with 20 additions and 3 deletions

View File

@ -48,7 +48,7 @@ void OUTLINE_DECOMPOSER::newContour()
{
CONTOUR contour;
contour.m_Orientation = FT_Outline_Get_Orientation( &m_outline );
m_contours->push_back( contour );
m_contours->push_back( std::move( contour ) );
}

View File

@ -44,7 +44,8 @@ public:
SCH_SHAPE( SHAPE_T::POLY, LAYER_RULE_AREAS, 0 /* line width */, FILL_T::NO_FILL, SCH_RULE_AREA_T ),
m_excludedFromSim( false ),
m_excludedFromBOM( false ),
m_excludedFromBoard( false )
m_excludedFromBoard( false ),
m_DNP( false )
{
SetLayer( LAYER_RULE_AREAS );
}

View File

@ -34,6 +34,11 @@
DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3( PCB_EDIT_FRAME* aEditFrame ) :
DIALOG_EXPORT_IDF3_BASE( aEditFrame ),
m_idfThouOpt( false ),
m_AutoAdjust( false ),
m_RefUnits( 0 ),
m_XRef( 0.0 ),
m_YRef( 0.0 ),
m_editFrame( aEditFrame )
{
SetFocus();

View File

@ -102,6 +102,8 @@ DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP( PCB_EDIT_FRAME* aEditFrame, wxWindow* aP
DIALOG_EXPORT_STEP_BASE( aEditFrame ),
m_editFrame( aEditFrame ),
m_job( aJob ),
m_userOriginX( 0.0 ),
m_userOriginY( 0.0 ),
m_originUnits( 0 /* mm */ ),
m_boardPath( aBoardPath )
{

View File

@ -43,7 +43,16 @@
DIALOG_EXPORT_VRML::DIALOG_EXPORT_VRML( PCB_EDIT_FRAME* aEditFrame ) :
DIALOG_EXPORT_VRML_BASE( aEditFrame ),
m_editFrame( aEditFrame )
m_editFrame( aEditFrame ),
m_unitsOpt( 1 ),
m_noUnspecified( false ),
m_noDNP( false ),
m_copy3DFilesOpt( false ),
m_useRelativePathsOpt( false ),
m_RefUnits( 0 ),
m_XRef( 0.0 ),
m_YRef( 0.0 ),
m_originMode( 0 )
{
m_filePicker->SetFocus();