Fix shadowed variable.
This commit is contained in:
parent
b14b8b5fb1
commit
9ae9301b46
|
@ -357,9 +357,9 @@ int BOARD_INSPECTION_TOOL::InspectClearance( const TOOL_EVENT& aEvent )
|
||||||
auto hasHole =
|
auto hasHole =
|
||||||
[]( BOARD_ITEM* aItem )
|
[]( BOARD_ITEM* aItem )
|
||||||
{
|
{
|
||||||
PAD* pad = dynamic_cast<PAD*>( aItem );
|
PAD* tmpPad = dynamic_cast<PAD*>( aItem );
|
||||||
|
|
||||||
if( pad && pad->GetDrillSizeX() > 0 && pad->GetDrillSizeY() > 0 )
|
if( tmpPad && tmpPad->GetDrillSizeX() > 0 && tmpPad->GetDrillSizeY() > 0 )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
PCB_VIA* via = dynamic_cast<PCB_VIA*>( aItem );
|
PCB_VIA* via = dynamic_cast<PCB_VIA*>( aItem );
|
||||||
|
|
Loading…
Reference in New Issue