chore: use ranged for in ClientListener::cleanupClientSockets
This commit is contained in:
parent
647201cd37
commit
a4f1a382d3
1 changed files with 2 additions and 3 deletions
|
|
@ -235,9 +235,8 @@ void ClientListener::cleanupListenSocket()
|
||||||
|
|
||||||
void ClientListener::cleanupClientSockets()
|
void ClientListener::cleanupClientSockets()
|
||||||
{
|
{
|
||||||
ClientSockets::iterator it;
|
for (auto client : m_clientSockets) {
|
||||||
for (it = m_clientSockets.begin(); it != m_clientSockets.end(); it++) {
|
delete client;
|
||||||
delete *it;
|
|
||||||
}
|
}
|
||||||
m_clientSockets.clear();
|
m_clientSockets.clear();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue