diff --git a/gui/statsdialog.cpp b/gui/statsdialog.cpp index 32e71d28c05..35fb1fef36b 100644 --- a/gui/statsdialog.cpp +++ b/gui/statsdialog.cpp @@ -411,6 +411,7 @@ QChartView *createChart(const QString &statsFile, const QString &tool) s->attachAxis(axisY); if (const auto *ls = dynamic_cast(s)) { for (QPointF p : ls->points()) { + // cppcheck-suppress useStlAlgorithm - this would reduce the readability of the code maxY = std::max(p.y(), maxY); } }