mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Disable using Qt functions deprecated up to Qt 6.5
* Disable using Qt functions deprecated up to Qt 6.5 * Utilize QSet::removeIf() PR #19419.
This commit is contained in:
parent
06581636a1
commit
33d767b765
3 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ void Server::removeConnection(Connection *connection)
|
|||
|
||||
void Server::dropTimedOutConnection()
|
||||
{
|
||||
erase_if(m_connections, [](Connection *connection)
|
||||
m_connections.removeIf([](Connection *connection)
|
||||
{
|
||||
if (!connection->hasExpired(KEEP_ALIVE_DURATION))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue