fix Warning

This commit is contained in:
berrux-dev committed 2026-10-03 09:20:13 +02:00
1 parent 593c221d23
commit 8345470273
316 files changed
+1246 -929

No files matched your search

@@ -1,4 +1,5 @@
#include "thp_script_httq.h"
#include <utility>
#include "logger.h"
#include <httq/HttpRequest.h>
@@ -162,7 +163,7 @@ ThpScriptServer::ThpScriptServer(QObject *parent)
}
connect(cli, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error),
connect(cli, &QWebSocket::errorOccurred,
this, [cli]()
{
cli->deleteLater();
@@ -348,7 +349,7 @@ void ThpScriptServer::changeList(const ThpServerInformation &tsi, httq::HttpRequ
QVector<ThpServerInformation> tsiArray;
tsiArray.reserve(arr.size() + 1);
for (const QJsonValue &val : qAsConst(arr))
for (const QJsonValue &val : std::as_const(arr))
{
ThpServerInformation tsix(fromJson(val));
if (tsix.scriptId == tsi.scriptId && tsix.exerciseId == tsi.exerciseId)