chore: Mainwindow, Send const-ref

This commit is contained in:
Tomaz Canabrava
2025-05-08 12:38:55 +02:00
committed by Nick Bolton
parent 0916009601
commit a8eb772b68
2 changed files with 4 additions and 4 deletions

View File

@ -1014,7 +1014,7 @@ void MainWindow::updateLocalFingerprint()
m_btnFingerprint->setVisible(tlsEnabled && QFile::exists(Settings::tlsLocalDb()));
}
void MainWindow::autoAddScreen(const QString name)
void MainWindow::autoAddScreen(const QString &name)
{
int r = m_serverConfig.autoAddScreen(name);
@ -1163,7 +1163,7 @@ void MainWindow::toggleCanRunCore(bool enableButtons)
m_actionStopCore->setEnabled(enableButtons);
}
void MainWindow::remoteHostChanged(const QString newRemoteHost)
void MainWindow::remoteHostChanged(const QString &newRemoteHost)
{
m_coreProcess.setAddress(newRemoteHost);
toggleCanRunCore(!newRemoteHost.isEmpty() && ui->rbModeClient->isChecked());

View File

@ -84,7 +84,7 @@ public:
{
return m_serverConfig;
}
void autoAddScreen(const QString name);
void autoAddScreen(const QString &name);
void hide();
@ -153,7 +153,7 @@ private:
void setHostName();
void daemonIpcClientConnectionFailed();
void toggleCanRunCore(bool enableButtons);
void remoteHostChanged(const QString newRemoteHost);
void remoteHostChanged(const QString &newRemoteHost);
/**
* @brief trustedFingerprintDb get the fingerprintDb for the trusted clients or trusted servers.