From 51d445007f865f0b2a5a3e243ecfb3e7e526d084 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 3 Mar 2021 02:19:46 +0000 Subject: [PATCH] Switch to using make_shared in another place --- pcbnew/connectivity/connectivity_algo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/connectivity/connectivity_algo.cpp b/pcbnew/connectivity/connectivity_algo.cpp index dc3e37120b..3ed63ee4e5 100644 --- a/pcbnew/connectivity/connectivity_algo.cpp +++ b/pcbnew/connectivity/connectivity_algo.cpp @@ -352,7 +352,7 @@ const CN_CONNECTIVITY_ALGO::CLUSTERS CN_CONNECTIVITY_ALGO::SearchClusters( CLUST while( !item_set.empty() ) { - CN_CLUSTER_PTR cluster ( new CN_CLUSTER() ); + CN_CLUSTER_PTR cluster = std::make_shared(); CN_ITEM* root; auto it = item_set.begin();