diff --git a/User.cpp b/User.cpp index cd6269dc..ec39937f 100644 --- a/User.cpp +++ b/User.cpp @@ -464,7 +464,7 @@ void CUser::RemoveNetwork(CIRCNetwork *pNetwork) { } } -bool CUser::DeleteNetwork(CString sNetwork) { +bool CUser::DeleteNetwork(const CString& sNetwork) { CIRCNetwork *pNetwork = FindNetwork(sNetwork); if (pNetwork) { diff --git a/User.h b/User.h index f20dfb91..02773e3a 100644 --- a/User.h +++ b/User.h @@ -67,7 +67,7 @@ public: // Networks CIRCNetwork* AddNetwork(const CString &sNetwork); - bool DeleteNetwork(CString sNetwork); + bool DeleteNetwork(const CString& sNetwork); bool AddNetwork(CIRCNetwork *pNetwork); void RemoveNetwork(CIRCNetwork *pNetwork); CIRCNetwork* FindNetwork(const CString& sNetwork);