Fixed some small details the analyzer was complaining about.
This commit is contained in:
parent
e32c82ac6f
commit
9e645db1a8
7 changed files with 40 additions and 42 deletions
|
|
@ -64,7 +64,7 @@ void BackupDialog::disconnectCurrentProcess()
|
|||
}
|
||||
|
||||
|
||||
void BackupDialog::writeOutput(QString s)
|
||||
void BackupDialog::writeOutput(const QString &s)
|
||||
{
|
||||
ui->stdOutput->appendPlainText(s);
|
||||
QScrollBar *bar = ui->stdOutput->verticalScrollBar();
|
||||
|
|
@ -153,7 +153,7 @@ void BackupDialog::setParams(QStringList &args)
|
|||
|
||||
int format_index = ui->backupFormat->currentIndex();
|
||||
auto format_model_base = ui->backupFormat->model();
|
||||
BackupFormatModel *bfm = dynamic_cast<BackupFormatModel *>(format_model_base);
|
||||
auto *bfm = dynamic_cast<BackupFormatModel *>(format_model_base);
|
||||
if (bfm) {
|
||||
QVariant v = bfm->data(bfm->index(format_index, 1));
|
||||
QString format("-F");
|
||||
|
|
@ -252,7 +252,7 @@ void BackupDialog::on_backupFormat_currentIndexChanged(int /*index*/)
|
|||
{
|
||||
int format_index = ui->backupFormat->currentIndex();
|
||||
auto format_model_base = ui->backupFormat->model();
|
||||
BackupFormatModel *bfm = dynamic_cast<BackupFormatModel *>(format_model_base);
|
||||
auto *bfm = dynamic_cast<BackupFormatModel *>(format_model_base);
|
||||
if (bfm) {
|
||||
QVariant v = bfm->data(bfm->index(format_index, 1));
|
||||
QString format = v.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue