Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "web_socket_handler.h"
|
||||
#include <utility>
|
||||
#include "building_process.h"
|
||||
|
||||
#include <QWebSocket>
|
||||
@@ -23,7 +24,7 @@ WebSocketHandler::WebSocketHandler(const std::shared_ptr<BuildingControlHandler>
|
||||
|
||||
WebSocketHandler::~WebSocketHandler()
|
||||
{
|
||||
for (const auto& ws : qAsConst(m_webSockets))
|
||||
for (const auto& ws : std::as_const(m_webSockets))
|
||||
{
|
||||
ws->disconnect(this);
|
||||
}
|
||||
@@ -71,7 +72,7 @@ bool WebSocketHandler::sendTelegramInternal() const
|
||||
const QString jsonStr = QString::fromUtf8(QJsonDocument(obj).toJson(QJsonDocument::Compact));
|
||||
|
||||
bool ret = false;
|
||||
for (const auto &wsw : qAsConst(m_webSockets))
|
||||
for (const auto &wsw : std::as_const(m_webSockets))
|
||||
{
|
||||
if (wsw->sendTextMessage(jsonStr))
|
||||
ret = true;
|
||||
@@ -108,7 +109,7 @@ bool WebSocketHandler::sendbuildingInfos() const
|
||||
const QString jsonStr = QString::fromUtf8(QJsonDocument(obj).toJson(QJsonDocument::Compact));
|
||||
|
||||
bool ret = false;
|
||||
for (const auto &wsw : qAsConst(m_webSockets))
|
||||
for (const auto &wsw : std::as_const(m_webSockets))
|
||||
{
|
||||
if (wsw->sendTextMessage(jsonStr))
|
||||
ret = true;
|
||||
|
||||
Reference in new issue
Block a user