Skip to content

Commit

Permalink
statsdialog.cpp: suppress useStlAlgorithm selfcheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jul 30, 2024
1 parent a630a69 commit 276224e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui/statsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ QChartView *createChart(const QString &statsFile, const QString &tool)
s->attachAxis(axisY);
if (const auto *ls = dynamic_cast<const QLineSeries*>(s)) {
for (QPointF p : ls->points()) {
// cppcheck-suppress useStlAlgorithm - this would reduce the readability of the code
maxY = std::max(p.y(), maxY);
}
}
Expand Down

0 comments on commit 276224e

Please sign in to comment.