mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Cleanup compiler warnings.
This commit is contained in:
parent
8ed367f8cd
commit
a0e768dd0e
@ -500,7 +500,7 @@ void PCB_EDIT_FRAME::UpdateTrackWidthSelectBox( wxChoice* aTrackWidthSelectBox,
|
||||
aTrackWidthSelectBox->Append( _( "Edit Pre-defined Sizes..." ) );
|
||||
}
|
||||
|
||||
if( GetDesignSettings().GetTrackWidthIndex() >= GetDesignSettings().m_TrackWidthList.size() )
|
||||
if( GetDesignSettings().GetTrackWidthIndex() >= (int) GetDesignSettings().m_TrackWidthList.size() )
|
||||
GetDesignSettings().SetTrackWidthIndex( 0 );
|
||||
|
||||
aTrackWidthSelectBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() );
|
||||
@ -559,7 +559,7 @@ void PCB_EDIT_FRAME::UpdateViaSizeSelectBox( wxChoice* aViaSizeSelectBox, bool a
|
||||
aViaSizeSelectBox->Append( _( "Edit Pre-defined Sizes..." ) );
|
||||
}
|
||||
|
||||
if( GetDesignSettings().GetViaSizeIndex() >= GetDesignSettings().m_ViasDimensionsList.size() )
|
||||
if( GetDesignSettings().GetViaSizeIndex() >= (int) GetDesignSettings().m_ViasDimensionsList.size() )
|
||||
GetDesignSettings().SetViaSizeIndex( 0 );
|
||||
|
||||
aViaSizeSelectBox->SetSelection( GetDesignSettings().GetViaSizeIndex() );
|
||||
|
@ -105,8 +105,7 @@ protected:
|
||||
{
|
||||
PCB_EDIT_FRAME* frame = (PCB_EDIT_FRAME*) getToolManager()->GetToolHolder();
|
||||
BOARD_DESIGN_SETTINGS& bds = frame->GetBoard()->GetDesignSettings();
|
||||
bool useIndex = !bds.m_UseConnectedTrackWidth
|
||||
&& !bds.UseCustomTrackViaSize();
|
||||
bool useIndex = !bds.m_UseConnectedTrackWidth && !bds.UseCustomTrackViaSize();
|
||||
wxString msg;
|
||||
|
||||
Clear();
|
||||
@ -117,7 +116,7 @@ protected:
|
||||
|
||||
AppendSeparator();
|
||||
|
||||
for( unsigned i = 1; i < bds.m_ViasDimensionsList.size(); i++ )
|
||||
for( int i = 1; i < (int) bds.m_ViasDimensionsList.size(); i++ )
|
||||
{
|
||||
VIA_DIMENSION via = bds.m_ViasDimensionsList[i];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user