Browse Source

Coverity warning fixes.

pull/18/head
jean-pierre charras 5 months ago
parent
commit
69891438a6
  1. 6
      common/dialogs/panel_toolbar_customization.cpp
  2. 1
      common/eda_shape.cpp
  3. 1
      eeschema/tools/sch_point_editor.cpp

6
common/dialogs/panel_toolbar_customization.cpp

@ -85,7 +85,8 @@ public:
TOOLBAR_TREE_ITEM_DATA( TOOLBAR_ITEM_TYPE aType, TOOL_ACTION* aAction ) :
m_type( aType ),
m_action( aAction )
m_action( aAction ),
m_size( 0 )
{
wxASSERT( aType == TOOLBAR_ITEM_TYPE::TOOL );
}
@ -123,7 +124,8 @@ PANEL_TOOLBAR_CUSTOMIZATION::PANEL_TOOLBAR_CUSTOMIZATION( wxWindow* aParent, APP
PANEL_TOOLBAR_CUSTOMIZATION_BASE( aParent ),
m_actionImageList( nullptr ),
m_appSettings( aCfg ),
m_appTbSettings( aTbSettings )
m_appTbSettings( aTbSettings ),
m_currentToolbar( TOOLBAR_LOC::TOP_MAIN )
{
// Copy the tools and controls into the internal maps
for( auto& tool : aTools )

1
common/eda_shape.cpp

@ -50,6 +50,7 @@ EDA_SHAPE::EDA_SHAPE( SHAPE_T aType, int aLineWidth, FILL_T aFill ) :
m_stroke( aLineWidth, LINE_STYLE::DEFAULT, COLOR4D::UNSPECIFIED ),
m_fill( aFill ),
m_fillColor( COLOR4D::UNSPECIFIED ),
m_hatchingDirty( true ),
m_rectangleHeight( 0 ),
m_rectangleWidth( 0 ),
m_segmentLength( 0 ),

1
eeschema/tools/sch_point_editor.cpp

@ -926,6 +926,7 @@ void SCH_POINT_EDITOR::makePointsAndBehavior( EDA_ITEM* aItem )
SCH_POINT_EDITOR::SCH_POINT_EDITOR() :
SCH_TOOL_BASE<SCH_BASE_FRAME>( "eeschema.PointEditor" ),
m_editedPoint( nullptr ),
m_arcEditMode( ARC_EDIT_MODE::KEEP_CENTER_ADJUST_ANGLE_RADIUS ),
m_inPointEditor( false )
{
}

Loading…
Cancel
Save