mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +02:00
CString should be const& in parameters.
Especially when it's not copied inside the function.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user