diff --git a/cmake/Modules/CommonConfig.cmake b/cmake/Modules/CommonConfig.cmake index eb9806d72..88b06afcf 100644 --- a/cmake/Modules/CommonConfig.cmake +++ b/cmake/Modules/CommonConfig.cmake @@ -20,7 +20,7 @@ target_compile_features(qbt_common_cfg INTERFACE ) target_compile_definitions(qbt_common_cfg INTERFACE - QT_DISABLE_DEPRECATED_BEFORE=0x050f02 + QT_DISABLE_DEPRECATED_UP_TO=0x060500 QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_BYTEARRAY diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index 4aa31425a..74c638c34 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -1382,7 +1382,7 @@ void SessionImpl::processNextResumeData(ResumeSessionContext *context) } } - erase_if(resumeData.tags, [this, &torrentID](const QString &tag) + std::erase_if(resumeData.tags, [this, &torrentID](const QString &tag) { if (hasTag(tag)) return false; diff --git a/src/base/http/server.cpp b/src/base/http/server.cpp index fae8caaff..02fe7bec0 100644 --- a/src/base/http/server.cpp +++ b/src/base/http/server.cpp @@ -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;