From abc605fcfac43c7a960c3aa11b305559b94600f7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 2 Apr 2019 08:25:34 +0200 Subject: [PATCH] fix a compil warning. Fix a few comments. --- pcbnew/board_design_settings.cpp | 2 +- pcbnew/convert_drawsegment_list_to_polygon.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/board_design_settings.cpp b/pcbnew/board_design_settings.cpp index e11fbb4907..d9512d854c 100644 --- a/pcbnew/board_design_settings.cpp +++ b/pcbnew/board_design_settings.cpp @@ -377,7 +377,7 @@ public: wxString oldPath = aConfig->GetPath(); NETCLASSES::const_iterator nc = m_Pt_param->begin(); - for( int index = 0; index <= m_Pt_param->GetCount(); ++index ) + for( unsigned index = 0; index <= m_Pt_param->GetCount(); ++index ) { wxString path = ""; NETCLASSPTR netclass; diff --git a/pcbnew/convert_drawsegment_list_to_polygon.cpp b/pcbnew/convert_drawsegment_list_to_polygon.cpp index 9db9c717e7..46f832057b 100644 --- a/pcbnew/convert_drawsegment_list_to_polygon.cpp +++ b/pcbnew/convert_drawsegment_list_to_polygon.cpp @@ -197,7 +197,7 @@ bool ConvertOutlineToPolygon( std::vector& aSegList, SHAPE_POLY_SE wxPoint prevPt; // Find edge point with minimum x, this should be in the outer polygon - // which will define the perimeter Edge.Cuts polygon. + // which will define the perimeter polygon polygon. wxPoint xmin = wxPoint( INT_MAX, 0 ); int xmini = 0; @@ -321,7 +321,7 @@ bool ConvertOutlineToPolygon( std::vector& aSegList, SHAPE_POLY_SE // The first DRAWSEGMENT is in 'graphic', ok to remove it from 'items' segList.erase( segList.begin() + xmini ); - // Output the Edge.Cuts perimeter as circle or polygon. + // Output the outline perimeter as polygon. if( graphic->GetShape() == S_CIRCLE ) { int steps = std::max( 4, GetArcToSegmentCount( graphic->GetRadius(), aTolerance, 360.0 ) );