refactor: ServerConnection::handleLogLine use referance to avoid unneeded copy

This commit is contained in:
sithlord48
2025-06-19 17:04:47 -04:00
committed by Nick Bolton
parent f0bb4e5cb3
commit 97006889bd

View File

@ -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);