From 11788d2f39735ee8d6ac768fd67380de2b0180b7 Mon Sep 17 00:00:00 2001 From: mitxela Date: Tue, 21 Feb 2023 23:40:23 +0000 Subject: [PATCH] Expose shared_ptr to swig Possibly not the right way to go about it but technically works (cherry picked from commit 182abd465244d7236621b1634994e589c6ae158f) --- pcbnew/netinfo.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/netinfo.h b/pcbnew/netinfo.h index aa27b41814..ae25316907 100644 --- a/pcbnew/netinfo.h +++ b/pcbnew/netinfo.h @@ -111,6 +111,11 @@ public: */ NETCLASS* GetNetClass() { return m_netClass.get(); } + /** + * @note Slow version for swig access + */ + std::shared_ptr GetNetClassSlow() { return m_netClass; } + int GetNetCode() const { return m_netCode; } void SetNetCode( int aNetCode ) { m_netCode = aNetCode; }