Fix shadow variable compile warning in text DRC provider.

This commit is contained in:
Wayne Stambaugh 2022-02-08 09:26:12 -05:00
parent 3b5474f190
commit 06e00c7957
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ bool DRC_TEST_PROVIDER_TEXT_DIMS::Run()
if( outlineCount == 0 )
continue; // ignore spaces
for( int ii = 0; ii < outlineCount; ++ii )
for( ii = 0; ii < outlineCount; ++ii )
holeCount += outlineGlyph->HoleCount( ii );
SHAPE_POLY_SET poly = *outlineGlyph;
@ -183,7 +183,7 @@ bool DRC_TEST_PROVIDER_TEXT_DIMS::Run()
int resultingOutlineCount = poly.OutlineCount();
int resultingHoleCount = 0;
for( int ii = 0; ii < resultingOutlineCount; ++ii )
for( ii = 0; ii < resultingOutlineCount; ++ii )
resultingHoleCount += poly.HoleCount( ii );
if( ( resultingOutlineCount != outlineCount )