Fix minor compil warnings.

This commit is contained in:
jean-pierre charras 2023-10-08 15:04:45 +02:00
parent f47cc39208
commit c9d6e79d2d
3 changed files with 8 additions and 8 deletions

View File

@ -583,7 +583,7 @@ wxSize LAYER_WIDGET::GetBestSize() const
wxArrayInt widths = m_LayersFlexGridSizer->GetColWidths();
int totWidth = 0;
for( int i = 0; i < LYR_COLUMN_COUNT && i < widths.GetCount(); ++i )
for( int i = 0; i < LYR_COLUMN_COUNT && i < (int)widths.GetCount(); ++i )
totWidth += widths[i];
// Account for the parent's frame:
@ -602,7 +602,7 @@ wxSize LAYER_WIDGET::GetBestSize() const
widths = m_RenderFlexGridSizer->GetColWidths();
totWidth = 0;
for( int i = 0; i < RND_COLUMN_COUNT && i < widths.GetCount(); ++i )
for( int i = 0; i < RND_COLUMN_COUNT && i < (int)widths.GetCount(); ++i )
totWidth += widths[i];
// account for the parent's frame, this one has void space of 10 PLUS a border:

View File

@ -204,7 +204,7 @@ public:
}
bool baselineValid() { return m_baseLine && m_baseLine->PointCount() > 1; }
void EditStart( GENERATOR_TOOL* aTool, BOARD* aBoard, PCB_BASE_EDIT_FRAME* aFrame,
BOARD_COMMIT* aCommit ) override
{
@ -335,7 +335,7 @@ public:
snapToNearestTrackPoint( m_end, aBoard, netCode );
VECTOR2I startSnapPoint, endSnapPoint;
PNS::LINKED_ITEM* startItem = PickSegment( router, m_origin, nullptr, layer, startSnapPoint );
PNS::LINKED_ITEM* endItem = PickSegment( router, m_end, nullptr, layer, endSnapPoint );
@ -976,7 +976,7 @@ public:
m_baseLine = *baseLine;
}
void ShowPropertiesDialog( PCB_BASE_EDIT_FRAME* aEditFrame )
void ShowPropertiesDialog( PCB_BASE_EDIT_FRAME* aEditFrame ) override
{
PNS::MEANDER_SETTINGS settings = ToMeanderSettings();

View File

@ -110,12 +110,12 @@ void RATSNEST_VIEW_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
}
auto adjustColor =
[&]( COLOR4D& color, double brightnessDelta, double alpha )
[&]( COLOR4D& color_base, double brightnessDelta, double alpha )
{
if( rs->GetColor( nullptr, LAYER_PCB_BACKGROUND ).GetBrightness() < 0.5 )
return color.Brightened( brightnessDelta ).WithAlpha( std::min( alpha, 1.0 ) );
return color_base.Brightened( brightnessDelta ).WithAlpha( std::min( alpha, 1.0 ) );
else
return color.Darkened( brightnessDelta ).WithAlpha( std::min( alpha, 1.0 ) );
return color_base.Darkened( brightnessDelta ).WithAlpha( std::min( alpha, 1.0 ) );
};
const bool curved_ratsnest = cfg->m_Display.m_DisplayRatsnestLinesCurved;