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
|
@ -892,7 +892,7 @@ void StatsView::plotValueChart(const std::vector<dive *> &dives,
|
|||
if (res.isValid()) {
|
||||
double height = res.get(valueAxisOperation);
|
||||
QString value = QString("%L1").arg(height, 0, 'f', decimals);
|
||||
std::vector<QString> label = std::vector<QString> { value };
|
||||
std::vector<QString> label = std::vector<QString> { std::move(value) };
|
||||
items.push_back({ pos - 0.5, pos + 0.5, height, label,
|
||||
categoryBinner->formatWithUnit(*bin), res });
|
||||
}
|
||||
|
@ -1080,7 +1080,7 @@ HistogramAxis *StatsView::createHistogramAxis(const QString &name, const StatsBi
|
|||
QString label = binner.formatLowerBound(*bin);
|
||||
double lowerBound = binner.lowerBoundToFloat(*bin);
|
||||
bool prefer = binner.preferBin(*bin);
|
||||
labels.push_back({ label, lowerBound, prefer });
|
||||
labels.push_back({ std::move(label), lowerBound, prefer });
|
||||
}
|
||||
|
||||
const StatsBin &lastBin = *bins.back().bin;
|
||||
|
@ -1129,7 +1129,7 @@ void StatsView::plotHistogramCountChart(const std::vector<dive *> &dives,
|
|||
double upperBound = categoryBinner->upperBoundToFloat(*bin);
|
||||
std::vector<QString> label = makePercentageLabels((int)dives.size(), total, isHorizontal);
|
||||
|
||||
items.push_back({ lowerBound, upperBound, std::move(dives), label,
|
||||
items.push_back({ lowerBound, upperBound, std::move(dives), std::move(label),
|
||||
categoryBinner->formatWithUnit(*bin), total });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue