Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
#include "connection_handler.h"
|
||||
#include <utility>
|
||||
|
||||
#include "client_connection.h"
|
||||
|
||||
@@ -16,7 +17,7 @@ ConnectionHandler::ConnectionHandler(QObject *parent)
|
||||
|
||||
ConnectionHandler::~ConnectionHandler()
|
||||
{
|
||||
for (auto connection : qAsConst(m_connections))
|
||||
for (auto connection : std::as_const(m_connections))
|
||||
connection->disconnect(this);
|
||||
}
|
||||
|
||||
@@ -46,7 +47,7 @@ bool ConnectionHandler::init(const QString &serviceName, unsigned short port)
|
||||
|
||||
void ConnectionHandler::sendToAllClients(ReplyMessage *message)
|
||||
{
|
||||
for (auto connection : qAsConst(m_connections))
|
||||
for (auto connection : std::as_const(m_connections))
|
||||
connection->addReply(new ReplyMessage(*message));
|
||||
|
||||
delete message;
|
||||
|
||||
Reference in new issue
Block a user