Replaced qOverload with QOverload for cpp11 compilation
This commit is contained in:
@@ -38,7 +38,7 @@ void Server::newConnection()
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto client = new Client(socket, this);
|
auto client = new Client(socket, this);
|
||||||
connect(this, &Server::distribute, client, qOverload<const QByteArray &>(&Client::write));
|
connect(this, &Server::distribute, client, QOverload<const QByteArray &>::of(&Client::write));
|
||||||
m_clients.insert(client);
|
m_clients.insert(client);
|
||||||
connect(client, &QObject::destroyed, this, [this, client](){
|
connect(client, &QObject::destroyed, this, [this, client](){
|
||||||
m_clients.remove(client);
|
m_clients.remove(client);
|
||||||
|
Reference in New Issue
Block a user