mirror of
https://github.com/znc/znc.git
synced 2026-05-18 15:25:53 +02:00
Fix GetClients() const correctness
It’s dangerous to give a non-const reference to an internal container that the API users are not supposed to modify.
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ protected:
|
||||
pIRCSock->PutIRC("PING :ZNC");
|
||||
}
|
||||
|
||||
vector<CClient*>& vClients = m_pNetwork->GetClients();
|
||||
const vector<CClient*>& vClients = m_pNetwork->GetClients();
|
||||
for (size_t b = 0; b < vClients.size(); b++) {
|
||||
CClient* pClient = vClients[b];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user