Promote PathsAndReferences from wxArrayString to first-class-citizen.

Keeping the data in an un-serialized format greatly simplifies usage,
and should make it more robust.
This commit is contained in:
Jeff Young
2020-02-24 23:19:17 +00:00
parent b4786e4121
commit c68b554c8e
20 changed files with 155 additions and 215 deletions
+2 -1
View File
@@ -290,9 +290,10 @@ int BACK_ANNOTATE::checkSharedSchematicErrors()
// We will count how many times every component used in our changelist
// Component in this case is SCH_COMPONENT which can be used by more than one symbol
int usageCount = 1;
for( auto it = m_changelist.begin(); it != m_changelist.end(); ++it )
{
int compUsage = it->first.GetComp()->GetPathsAndReferences().Count();
int compUsage = it->first.GetComp()->GetInstanceReferences().size();
if( compUsage == 1 )
continue;