diff options
| author | Karol Kosek <krkk@krkk.ct8.pl> | 2020-12-30 17:34:12 +0100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2020-12-30 20:31:39 +0100 |
| commit | cf4568bb5d5d6d098e411461c28b832908e965a7 (patch) | |
| tree | 6c629e655278d4f9e2bc9cade34d8f8611bd1134 /src/dialogs/certificateiodialog.cpp | |
| parent | 91e3729fe67cd7bd645c9babbbfe11ea31ad7229 (diff) | |
| download | kristall-cf4568bb5d5d6d098e411461c28b832908e965a7.tar.gz | |
Use const variables
Diffstat (limited to 'src/dialogs/certificateiodialog.cpp')
| -rw-r--r-- | src/dialogs/certificateiodialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dialogs/certificateiodialog.cpp b/src/dialogs/certificateiodialog.cpp index 8c9fcd5..079d793 100644 --- a/src/dialogs/certificateiodialog.cpp +++ b/src/dialogs/certificateiodialog.cpp @@ -72,7 +72,7 @@ void CertificateIoDialog::on_select_certificate_file_button_clicked() if(dialog.exec() != QDialog::Accepted) return; - this->ui->certificate_file_name->setText(dialog.selectedFiles().first()); + this->ui->certificate_file_name->setText(dialog.selectedFiles().constFirst()); this->updateUI(); } @@ -88,7 +88,7 @@ void CertificateIoDialog::on_select_key_file_button_clicked() if(dialog.exec() != QDialog::Accepted) return; - this->ui->key_file_name->setText(dialog.selectedFiles().first()); + this->ui->key_file_name->setText(dialog.selectedFiles().constFirst()); this->updateUI(); } |
