Deconflict some LIB_TREE_ITEM APIs so they can remain non-const.

(The non-const is required by FOOTPRINT_INFO, which must load
footrpints to get some of the data.)
This commit is contained in:
Jeff Young
2024-04-04 13:18:55 +01:00
parent 59142a10d7
commit bf2b3b0b0f
12 changed files with 39 additions and 30 deletions
+3 -3
View File
@@ -193,7 +193,7 @@ LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM( LIB_TREE_NODE* aParent, LIB_TREE_ITEM* a
m_LibId.SetLibItemName( aItem->GetName() );
m_Name = aItem->GetName();
m_Desc = aItem->GetDescription();
m_Desc = aItem->GetDesc();
m_Footprint = aItem->GetFootprint();
m_PinCount = aItem->GetPinCount();
@@ -221,11 +221,11 @@ LIB_TREE_NODE_UNIT& LIB_TREE_NODE_ITEM::AddUnit( LIB_TREE_ITEM* aItem, int aUnit
void LIB_TREE_NODE_ITEM::Update( LIB_TREE_ITEM* aItem )
{
m_LibId.SetLibNickname( aItem->GetLibId().GetLibNickname() );
m_LibId.SetLibNickname( aItem->GetLIB_ID().GetLibNickname() );
m_LibId.SetLibItemName( aItem->GetName() );
m_Name = aItem->GetName();
m_Desc = aItem->GetDescription();
m_Desc = aItem->GetDesc();
aItem->GetChooserFields( m_Fields );