Remove some wxString& return values for better thread safety.

This commit is contained in:
Jeff Young 2020-08-19 19:37:13 +01:00
parent 835d4a268f
commit 4cd994611b
1 changed files with 3 additions and 5 deletions

View File

@ -121,11 +121,9 @@ public:
* Function GetNetname
* @return wxString - the full netname
*/
const wxString& GetNetname() const
wxString GetNetname() const
{
static const wxString s_emptyString;
return m_netinfo ? m_netinfo->GetNetname() : s_emptyString;
return m_netinfo ? m_netinfo->GetNetname() : wxString();
}
/**
@ -152,7 +150,7 @@ public:
* Function GetShortNetname
* @return wxString - the short netname
*/
const wxString& GetShortNetname() const
wxString GetShortNetname() const
{
return m_netinfo->GetShortNetname();
}