Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO

This commit is contained in:
luisangelsm
2026-03-30 15:48:02 +02:00
parent 12a5949b16
commit e6cbfa634b
49 changed files with 227 additions and 204 deletions

View File

@ -5,6 +5,7 @@
#include <QSslConfiguration>
#endif
#include <QDir>
#include <utility>
#include "httpconnectionhandlerpool.h"
using namespace stefanfrings;
@ -25,7 +26,7 @@ HttpConnectionHandlerPool::HttpConnectionHandlerPool(const QSettings *settings,
HttpConnectionHandlerPool::~HttpConnectionHandlerPool()
{
// delete all connection handlers and wait until their threads are closed
foreach(HttpConnectionHandler* handler, pool)
for (HttpConnectionHandler *handler : std::as_const(pool))
{
delete handler;
}
@ -39,7 +40,7 @@ HttpConnectionHandler* HttpConnectionHandlerPool::getConnectionHandler()
HttpConnectionHandler* freeHandler=0;
mutex.lock();
// find a free handler in pool
foreach(HttpConnectionHandler* handler, pool)
for (HttpConnectionHandler *handler : std::as_const(pool))
{
if (!handler->isBusy())
{
@ -69,7 +70,7 @@ void HttpConnectionHandlerPool::cleanup()
int maxIdleHandlers=settings->value("minThreads",1).toInt();
int idleCounter=0;
mutex.lock();
foreach(HttpConnectionHandler* handler, pool)
for (HttpConnectionHandler *handler : std::as_const(pool))
{
if (!handler->isBusy())
{