Fix minor compil warnings

This commit is contained in:
jean-pierre charras 2019-05-11 11:12:39 +02:00
parent 17ac5b6d13
commit 0a308c4584
5 changed files with 6 additions and 6 deletions

View File

@ -182,7 +182,7 @@ void LIB_POLYLINE::AddCorner( const wxPoint& aPosition )
int currentMinDistance = INT_MAX;
int closestLineStart = 0;
for( int i = 0; i < m_PolyPoints.size() - 1; ++i )
for( unsigned i = 0; i < m_PolyPoints.size() - 1; ++i )
{
int distance = (int) DistanceLinePoint( m_PolyPoints[i], m_PolyPoints[i + 1], aPosition );

View File

@ -1879,7 +1879,7 @@ void SCH_LEGACY_PLUGIN::Format( SELECTION* aSelection, OUTPUTFORMATTER* aFormatt
{
m_out = aFormatter;
for( int i = 0; i < aSelection->GetSize(); ++i )
for( unsigned i = 0; i < aSelection->GetSize(); ++i )
{
SCH_ITEM* item = (SCH_ITEM*) aSelection->GetItem( i );

View File

@ -454,7 +454,7 @@ void EE_POINT_EDITOR::updateItem() const
lines->ClearPoints();
for( int i = 0; i < m_editPoints->PointsSize(); ++i )
for( unsigned i = 0; i < m_editPoints->PointsSize(); ++i )
lines->AddPoint( mapCoords( m_editPoints->Point( i ).GetPosition() ) );
break;
@ -661,7 +661,7 @@ bool EE_POINT_EDITOR::removeCornerCondition( const SELECTION& )
const std::vector<wxPoint>& pts = polyLine->GetPolyPoints();
for( int i = 0; i < polyLine->GetCornerCount(); ++i )
for( unsigned i = 0; i < polyLine->GetCornerCount(); ++i )
{
if( pts[i] == mapCoords( m_editedPoint->GetPosition() ) )
return true;

View File

@ -73,7 +73,7 @@ private:
inline int getEditedPointIndex() const
{
for( int i = 0; i < m_editPoints->PointsSize(); ++i )
for( unsigned i = 0; i < m_editPoints->PointsSize(); ++i )
{
if( m_editedPoint == &m_editPoints->Point( i ) )
return i;

View File

@ -612,7 +612,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
SYMBOL_LIB_TABLE* symLibTable = m_frame->Prj().SchSymbolLibTable();
PART_LIB* partLib = m_frame->Prj().SchLibs()->GetCacheLibrary();
for( int i = 0; i < loadedItems.size(); ++i )
for( unsigned i = 0; i < loadedItems.size(); ++i )
{
EDA_ITEM* item = loadedItems[i];