Fix compil warnings and a wxWidgets alert.

This commit is contained in:
jean-pierre charras 2023-05-29 16:49:36 +02:00
parent 6e468c5ce9
commit 6b845b9054
4 changed files with 5 additions and 5 deletions

View File

@ -44,8 +44,8 @@ DIALOG_PLUGIN_OPTIONS::DIALOG_PLUGIN_OPTIONS( wxWindow* aParent,
wxString* aResult ) :
DIALOG_PLUGIN_OPTIONS_BASE( aParent ),
m_callers_options( aFormattedOptions ),
m_choices( aPluginOptions ),
m_result( aResult ),
m_choices( aPluginOptions ),
m_initial_help( INITIAL_HELP ),
m_grid_widths_dirty( true )
{

View File

@ -139,7 +139,7 @@ public:
protected:
DIALOG_EDIT_LIBRARY_TABLES* m_dialog;
virtual void optionsEditor( int aRow )
virtual void optionsEditor( int aRow ) override
{
SYMBOL_LIB_TABLE_GRID* tbl = (SYMBOL_LIB_TABLE_GRID*) m_grid->GetTable();

View File

@ -254,7 +254,7 @@ const SHAPE_LINE_CHAIN DIRECTION_45::BuildInitialTrace( const VECTOR2I& aP0, con
if( w == h ) // we only need one arc without a straigth line.
{
arc.ConstructFromStartEndCenter( aP0, aP1, aP1 - mp0, sh == sw != startDiagonal );
arc.ConstructFromStartEndCenter( aP0, aP1, aP1 - mp0, ( sh == sw ) != startDiagonal );
pl.Append( arc );
return pl;
}

View File

@ -392,8 +392,8 @@ void DIALOG_FIND::search( bool aDirection )
msg.Printf( _( "'%s' found" ), searchString );
m_frame->SetStatusText( msg );
msg.Printf( _( "Hit(s): %ld / %lu" ),
std::distance( m_hitList.begin(), m_it ) + 1,
msg.Printf( _( "Hit(s): %d / %zu" ),
(int)std::distance( m_hitList.begin(), m_it ) + 1,
m_hitList.size() );
m_status->SetLabel( msg );
}