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()
|
||||
{
|
||||
ClientSockets::iterator it;
|
||||
for (it = m_clientSockets.begin(); it != m_clientSockets.end(); it++) {
|
||||
delete *it;
|
||||
for (auto client : m_clientSockets) {
|
||||
delete client;
|
||||
}
|
||||
m_clientSockets.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue