From 2214e853c1d36fcd2c43139a210a9023a1351da4 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Fri, 25 Nov 2022 07:37:27 +0100 Subject: [PATCH] Make a few variables const --- common/dialogs/panel_setup_netclasses.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/dialogs/panel_setup_netclasses.cpp b/common/dialogs/panel_setup_netclasses.cpp index 114397e406..c4dc74f7c3 100644 --- a/common/dialogs/panel_setup_netclasses.cpp +++ b/common/dialogs/panel_setup_netclasses.cpp @@ -108,15 +108,15 @@ PANEL_SETUP_NETCLASSES::PANEL_SETUP_NETCLASSES( PAGED_DIALOG* aParent, EDA_DRAW_ m_originalColWidths = new int[ m_netclassGrid->GetNumberCols() ]; // Calculate a min best size to handle longest usual numeric values: - int min_best_width = m_netclassGrid->GetTextExtent( "555,555555 mils" ).x; + int const min_best_width = m_netclassGrid->GetTextExtent( "555,555555 mils" ).x; for( int i = 0; i < m_netclassGrid->GetNumberCols(); ++i ) { // We calculate the column min size only from texts sizes, not using the initial col width // as this initial width is sometimes strange depending on the language (wxGrid bug?) - int min_width = m_netclassGrid->GetVisibleWidth( i, true, true ); + int const min_width = m_netclassGrid->GetVisibleWidth( i, true, true ); - int weighted_min_best_width = + int const weighted_min_best_width = ( i == GRID_LINESTYLE ) ? min_best_width * 3 / 2 : min_best_width;