Fix a compil warning (shadowed var) and add a comment.
This commit is contained in:
parent
bfe595819a
commit
3a00d76207
|
@ -2770,9 +2770,9 @@ bool CONNECTION_GRAPH::ercCheckLabels( const CONNECTION_SUBGRAPH* aSubgraph )
|
||||||
int pinCount = 0;
|
int pinCount = 0;
|
||||||
|
|
||||||
auto hasPins =
|
auto hasPins =
|
||||||
[]( const CONNECTION_SUBGRAPH* aSubgraph )
|
[]( const CONNECTION_SUBGRAPH* aLocSubgraph )
|
||||||
{
|
{
|
||||||
for( const SCH_ITEM* item : aSubgraph->m_items )
|
for( const SCH_ITEM* item : aLocSubgraph->m_items )
|
||||||
{
|
{
|
||||||
switch( item->Type() )
|
switch( item->Type() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1186,6 +1186,10 @@ SCH_BITMAP* SCH_LEGACY_PLUGIN::loadBitmap( LINE_READER& aReader )
|
||||||
// Read PNG data, stored in hexadecimal,
|
// Read PNG data, stored in hexadecimal,
|
||||||
// each byte = 2 hexadecimal digits and a space between 2 bytes
|
// each byte = 2 hexadecimal digits and a space between 2 bytes
|
||||||
// and put it in memory stream buffer
|
// and put it in memory stream buffer
|
||||||
|
// Note:
|
||||||
|
// Some old files created bu the V4 schematic versions have a extra
|
||||||
|
// "$EndBitmap" at the end of the hexadecimal data. (Probably due to
|
||||||
|
// a bug). So discard it
|
||||||
int len = strlen( line );
|
int len = strlen( line );
|
||||||
|
|
||||||
for( ; len > 0 && !isspace( *line ) && '$' != *line; len -= 3, line += 3 )
|
for( ; len > 0 && !isspace( *line ) && '$' != *line; len -= 3, line += 3 )
|
||||||
|
|
Loading…
Reference in New Issue