Browse Source

Fix compil warnings and a wxWidgets alert.

newinvert
jean-pierre charras 2 years ago
parent
commit
6b845b9054
  1. 2
      common/dialogs/dialog_plugin_options.cpp
  2. 2
      eeschema/dialogs/panel_sym_lib_table.cpp
  3. 2
      libs/kimath/src/geometry/direction_45.cpp
  4. 4
      pcbnew/dialogs/dialog_find.cpp

2
common/dialogs/dialog_plugin_options.cpp

@ -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 )
{

2
eeschema/dialogs/panel_sym_lib_table.cpp

@ -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();

2
libs/kimath/src/geometry/direction_45.cpp

@ -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;
}

4
pcbnew/dialogs/dialog_find.cpp

@ -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 );
}

Loading…
Cancel
Save