Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+4
-3
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
#include "connection_handler.h"
|
||||
#include <utility>
|
||||
|
||||
#include "client_connection.h"
|
||||
|
||||
@@ -17,7 +18,7 @@ ConnectionHandler::ConnectionHandler()
|
||||
|
||||
ConnectionHandler::~ConnectionHandler()
|
||||
{
|
||||
for (auto s : qAsConst(m_connections))
|
||||
for (auto s : std::as_const(m_connections))
|
||||
s->disconnect(this);
|
||||
qDeleteAll(m_connections);
|
||||
}
|
||||
@@ -52,7 +53,7 @@ bool ConnectionHandler::init()
|
||||
void ConnectionHandler::onUpdate()
|
||||
{
|
||||
emit clearFrequencyPlanningStatus();
|
||||
for (ClientConnection *currentConnection : qAsConst(m_connections))
|
||||
for (ClientConnection *currentConnection : std::as_const(m_connections))
|
||||
currentConnection->addMessage(Messages::UpdateMessage());
|
||||
}
|
||||
|
||||
@@ -103,6 +104,6 @@ void ConnectionHandler::onDisconnected(ClientConnection *conn)
|
||||
|
||||
void ConnectionHandler::onPositions(const CombatNetRadio::WebSocketInterface::Messages::ReplyMessage &positionsCnr)
|
||||
{
|
||||
for (ClientConnection *currentConnection : qAsConst(m_connections))
|
||||
for (ClientConnection *currentConnection : std::as_const(m_connections))
|
||||
currentConnection->addMessage(positionsCnr);
|
||||
}
|
||||
Reference in new issue
Block a user