mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Formatting.
This commit is contained in:
parent
0b90d941d3
commit
15468c86b9
@ -1291,7 +1291,8 @@ int ERC_TESTER::TestSimilarLabels()
|
|||||||
int errors = 0;
|
int errors = 0;
|
||||||
std::unordered_map<wxString, std::vector<std::tuple<wxString, SCH_ITEM*, SCH_SHEET_PATH>>> generalMap;
|
std::unordered_map<wxString, std::vector<std::tuple<wxString, SCH_ITEM*, SCH_SHEET_PATH>>> generalMap;
|
||||||
|
|
||||||
auto logError = [&]( const wxString& normalized, SCH_ITEM* item, const SCH_SHEET_PATH& sheet,
|
auto logError =
|
||||||
|
[&]( const wxString& normalized, SCH_ITEM* item, const SCH_SHEET_PATH& sheet,
|
||||||
const std::tuple<wxString, SCH_ITEM*, SCH_SHEET_PATH>& other )
|
const std::tuple<wxString, SCH_ITEM*, SCH_SHEET_PATH>& other )
|
||||||
{
|
{
|
||||||
auto& [otherText, otherItem, otherSheet] = other;
|
auto& [otherText, otherItem, otherSheet] = other;
|
||||||
@ -1360,9 +1361,7 @@ int ERC_TESTER::TestSimilarLabels()
|
|||||||
SCH_PIN* pin = static_cast<SCH_PIN*>( item );
|
SCH_PIN* pin = static_cast<SCH_PIN*>( item );
|
||||||
|
|
||||||
if( !pin->IsPower() )
|
if( !pin->IsPower() )
|
||||||
{
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( pin->GetParentSymbol() );
|
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( pin->GetParentSymbol() );
|
||||||
wxString unnormalized = symbol->GetValue( true, &sheet, false );
|
wxString unnormalized = symbol->GetValue( true, &sheet, false );
|
||||||
@ -1390,6 +1389,7 @@ int ERC_TESTER::TestSimilarLabels()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user