Fix shadowing

This commit is contained in:
Seth Hillbrand 2021-10-18 08:57:45 -07:00
parent cee9e417ec
commit 10ac675905
1 changed files with 16 additions and 16 deletions

View File

@ -2409,13 +2409,13 @@ PCB_SHAPE* PCB_PARSER::parsePCB_SHAPE()
} }
else else
{ {
wxPoint start, mid, end; wxPoint arc_start, arc_mid, arc_end;
if( token != T_start ) if( token != T_start )
Expecting( T_start ); Expecting( T_start );
start.x = parseBoardUnits( "X coordinate" ); arc_start.x = parseBoardUnits( "X coordinate" );
start.y = parseBoardUnits( "Y coordinate" ); arc_start.y = parseBoardUnits( "Y coordinate" );
NeedRIGHT(); NeedRIGHT();
NeedLEFT(); NeedLEFT();
token = NextTok(); token = NextTok();
@ -2423,8 +2423,8 @@ PCB_SHAPE* PCB_PARSER::parsePCB_SHAPE()
if( token != T_mid ) if( token != T_mid )
Expecting( T_mid ); Expecting( T_mid );
mid.x = parseBoardUnits( "X coordinate" ); arc_mid.x = parseBoardUnits( "X coordinate" );
mid.y = parseBoardUnits( "Y coordinate" ); arc_mid.y = parseBoardUnits( "Y coordinate" );
NeedRIGHT(); NeedRIGHT();
NeedLEFT(); NeedLEFT();
token = NextTok(); token = NextTok();
@ -2432,11 +2432,11 @@ PCB_SHAPE* PCB_PARSER::parsePCB_SHAPE()
if( token != T_end ) if( token != T_end )
Expecting( T_end ); Expecting( T_end );
end.x = parseBoardUnits( "X coordinate" ); arc_end.x = parseBoardUnits( "X coordinate" );
end.y = parseBoardUnits( "Y coordinate" ); arc_end.y = parseBoardUnits( "Y coordinate" );
NeedRIGHT(); NeedRIGHT();
shape->SetArcGeometry( start, mid, end ); shape->SetArcGeometry( arc_start, arc_mid, arc_end );
} }
break; break;
@ -3709,13 +3709,13 @@ FP_SHAPE* PCB_PARSER::parseFP_SHAPE()
} }
else else
{ {
wxPoint start, mid, end; wxPoint arc_start, arc_mid, arc_end;
if( token != T_start ) if( token != T_start )
Expecting( T_start ); Expecting( T_start );
start.x = parseBoardUnits( "X coordinate" ); arc_start.x = parseBoardUnits( "X coordinate" );
start.y = parseBoardUnits( "Y coordinate" ); arc_start.y = parseBoardUnits( "Y coordinate" );
NeedRIGHT(); NeedRIGHT();
NeedLEFT(); NeedLEFT();
token = NextTok(); token = NextTok();
@ -3723,8 +3723,8 @@ FP_SHAPE* PCB_PARSER::parseFP_SHAPE()
if( token != T_mid ) if( token != T_mid )
Expecting( T_mid ); Expecting( T_mid );
mid.x = parseBoardUnits( "X coordinate" ); arc_mid.x = parseBoardUnits( "X coordinate" );
mid.y = parseBoardUnits( "Y coordinate" ); arc_mid.y = parseBoardUnits( "Y coordinate" );
NeedRIGHT(); NeedRIGHT();
NeedLEFT(); NeedLEFT();
token = NextTok(); token = NextTok();
@ -3732,11 +3732,11 @@ FP_SHAPE* PCB_PARSER::parseFP_SHAPE()
if( token != T_end ) if( token != T_end )
Expecting( T_end ); Expecting( T_end );
end.x = parseBoardUnits( "X coordinate" ); arc_end.x = parseBoardUnits( "X coordinate" );
end.y = parseBoardUnits( "Y coordinate" ); arc_end.y = parseBoardUnits( "Y coordinate" );
NeedRIGHT(); NeedRIGHT();
shape->SetArcGeometry0( start, mid, end ); shape->SetArcGeometry0( arc_start, arc_mid, arc_end );
} }
break; break;