From 2b3eb0b522c2cc166edc237f155ff893f1ecc191 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 23 Feb 2023 09:50:28 +0100 Subject: [PATCH] fix minor compil warnings --- eeschema/sim/sim_plot_frame.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index 3bdc2a751c..45473ccba2 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -213,7 +213,7 @@ void SIGNALS_GRID_TRICKS::doPopupSelection( wxCommandEvent& event ) wxGridCellCoordsArray cells1 = m_grid->GetSelectionBlockTopLeft(); wxGridCellCoordsArray cells2 = m_grid->GetSelectionBlockBottomRight(); - for( int i = 0; i < cells1.Count(); i++ ) + for( size_t i = 0; i < cells1.Count(); i++ ) { if( cells1[i].GetCol() == COL_SIGNAL_NAME ) { @@ -226,7 +226,7 @@ void SIGNALS_GRID_TRICKS::doPopupSelection( wxCommandEvent& event ) wxGridCellCoordsArray cells3 = m_grid->GetSelectedCells(); - for( int i = 0; i < cells3.Count(); i++ ) + for( size_t i = 0; i < cells3.Count(); i++ ) { if( cells3[i].GetCol() == COL_SIGNAL_NAME ) signals.push_back( m_grid->GetCellValue( cells3[i].GetRow(), cells3[i].GetCol() ) ); @@ -400,7 +400,7 @@ void MEASUREMENTS_GRID_TRICKS::doPopupSelection( wxCommandEvent& event ) wxGridCellCoordsArray cells1 = m_grid->GetSelectionBlockTopLeft(); wxGridCellCoordsArray cells2 = m_grid->GetSelectionBlockBottomRight(); - for( int i = 0; i < cells1.Count(); i++ ) + for( size_t i = 0; i < cells1.Count(); i++ ) { if( cells1[i].GetCol() == COL_MEASUREMENT ) { @@ -413,7 +413,7 @@ void MEASUREMENTS_GRID_TRICKS::doPopupSelection( wxCommandEvent& event ) wxGridCellCoordsArray cells3 = m_grid->GetSelectedCells(); - for( int i = 0; i < cells3.Count(); i++ ) + for( size_t i = 0; i < cells3.Count(); i++ ) { if( cells3[i].GetCol() == COL_MEASUREMENT ) measurements.push_back( cells3[i].GetRow() ); @@ -1388,7 +1388,7 @@ void SIM_PLOT_FRAME::UpdateMeasurement( int aRow ) case SIM_TYPE::ST_POLE_ZERO: // There is no vector for integration case SIM_TYPE::ST_TRANS_FUNC: // There is no vector for integration default: - + units += wxS( "ยท?" ); break; }