From 6e58a7421482d91d4b5700694b5a8a360f36c334 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 15:36:50 -0700 Subject: [PATCH] create pointer correctly to fix exception in test case --- OdbDesignLib/ProductModel/PinConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OdbDesignLib/ProductModel/PinConnection.cpp b/OdbDesignLib/ProductModel/PinConnection.cpp index fe47a7f6..392463b6 100644 --- a/OdbDesignLib/ProductModel/PinConnection.cpp +++ b/OdbDesignLib/ProductModel/PinConnection.cpp @@ -52,7 +52,7 @@ namespace Odb::Lib::ProductModel void PinConnection::from_protobuf(const Odb::Lib::Protobuf::ProductModel::PinConnection& message) { m_name = message.name(); - m_pComponent = std::shared_ptr(); + m_pComponent = std::make_shared(); m_pComponent->from_protobuf(message.component()); m_pPin = std::make_shared("", -1); m_pPin->from_protobuf(message.pin());