mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: more Coverity silencing
Mostly irrelevant std::move() stuff of copy-on-write Qt objects, a few real bugs, a timestamp_t downconversion and some codingsyle adaptation. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
35ff6eea35
commit
91e4fb4769
27 changed files with 47 additions and 47 deletions
|
@ -326,7 +326,7 @@ void ColumnNameResult::setColumnValues(QList<QStringList> columns)
|
|||
endInsertColumns();
|
||||
|
||||
beginInsertRows(QModelIndex(), 0, columns.count()-1);
|
||||
columnValues = columns;
|
||||
columnValues = std::move(columns);
|
||||
endInsertRows();
|
||||
}
|
||||
|
||||
|
@ -799,10 +799,11 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
|
|||
}
|
||||
|
||||
if (rows > 0)
|
||||
resultModel->setColumnValues(fileColumns);
|
||||
for (int i = 0; i < headers.count(); i++)
|
||||
resultModel->setColumnValues(std::move(fileColumns));
|
||||
for (int i = 0; i < headers.count(); i++) {
|
||||
if (!headers.at(i).isEmpty())
|
||||
resultModel->setData(resultModel->index(0, i),headers.at(i),Qt::EditRole);
|
||||
}
|
||||
}
|
||||
|
||||
void DiveLogImportDialog::setup_csv_params(QStringList r, xml_params ¶ms)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue