refactor: ServerConnection::handleLogLine use referance to avoid unneeded copy
This commit is contained in:
parent
f0bb4e5cb3
commit
97006889bd
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ ServerConnection::ServerConnection(QWidget *parent, IServerConfig &serverConfig,
|
|||
void ServerConnection::handleLogLine(const QString &logLine)
|
||||
{
|
||||
ServerMessage message(logLine);
|
||||
const auto clientName = message.getClientName();
|
||||
const auto &clientName = message.getClientName();
|
||||
|
||||
if (message.isDisconnectedMessage()) {
|
||||
m_connectedClients.remove(clientName);
|
||||
|
|
|
|||
Loading…
Reference in a new issue