From 47919cdc543a3673fc1d370a7fcbca204ed72e7d Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Thu, 13 Aug 2020 00:20:08 +0200 Subject: [PATCH] pcbnew/dialogs: use shared_ptr for RC_ITEM --- pcbnew/dialogs/dialog_drc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp index 675eb2b255..8ffe0a52c8 100644 --- a/pcbnew/dialogs/dialog_drc.cpp +++ b/pcbnew/dialogs/dialog_drc.cpp @@ -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 = 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() );