Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+3
-2
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "web_socket_handler.h"
|
||||
#include <utility>
|
||||
|
||||
#include "main_handler.h"
|
||||
#include "ngs_handler.h"
|
||||
@@ -24,7 +25,7 @@ WebSocketHandler::WebSocketHandler(int exerciseId, MainHandler *mainHandler, QOb
|
||||
|
||||
WebSocketHandler::~WebSocketHandler()
|
||||
{
|
||||
for (const auto &s : qAsConst(m_webSockets))
|
||||
for (const auto &s : std::as_const(m_webSockets))
|
||||
s->disconnect(this);
|
||||
}
|
||||
|
||||
@@ -54,7 +55,7 @@ bool WebSocketHandler::sendTelegramInternal(const TrainingAreaBase::TetraIcd::Tr
|
||||
DEBUG_LOG(m_logger) << "jsonStr: " << jsonStr;
|
||||
|
||||
bool bOk = false;
|
||||
for (const auto &wsw : qAsConst(m_webSockets))
|
||||
for (const auto &wsw : std::as_const(m_webSockets))
|
||||
{
|
||||
if (wsw->sendTextMessage(jsonStr, exerciseId))
|
||||
bOk = true;
|
||||
|
||||
Reference in new issue
Block a user