pcbnew/dialogs: use shared_ptr for RC_ITEM

This commit is contained in:
Tomasz Wlostowski 2020-08-13 00:20:08 +02:00
parent f582783b27
commit 47919cdc54
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ void DIALOG_DRC::OnDRCItemSelected( wxDataViewEvent& aEvent )
if( item )
{
PCB_LAYER_ID principalLayer = item->GetLayer();
RC_ITEM* rc_item = node->m_RcItem;
std::shared_ptr<RC_ITEM> rc_item = node->m_RcItem;
BOARD_ITEM* a = board->GetItem( rc_item->GetMainItemID() );
BOARD_ITEM* b = board->GetItem( rc_item->GetAuxItemID() );
BOARD_ITEM* c = board->GetItem( rc_item->GetAuxItem2ID() );