Return new string to avoid losing the reference

NETCLASSes are stored as shared pointers.  We lose the reference as soon
as the pointer count decrements to 0, which can happen immediately when
the shared pointer is returned.
This commit is contained in:
Seth Hillbrand 2021-08-22 16:56:41 -07:00
parent 9770962ab4
commit a3441a969d
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public:
return wxT( "NETCLASS" );
}
const wxString& GetName() const { return m_Name; }
const wxString GetName() const { return m_Name; }
void SetName( const wxString& aName ) { m_Name = aName; }
/**