chore: Mainwindow, Send const-ref
This commit is contained in:
committed by
Nick Bolton
parent
0916009601
commit
a8eb772b68
@ -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());
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user