From 5775bd7b27f0c71a78cfe526b971c3f1652b4add Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 11 Jan 2021 13:22:39 +0100 Subject: Silence some compiler warnings This is what clang suggested in compiler warnings. Signed-off-by: Robert C. Helling --- stats/pieseries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stats/pieseries.cpp') diff --git a/stats/pieseries.cpp b/stats/pieseries.cpp index fe7de17f7..eeecac36c 100644 --- a/stats/pieseries.cpp +++ b/stats/pieseries.cpp @@ -116,7 +116,7 @@ PieSeries::PieSeries(QGraphicsScene *scene, StatsAxis *xAxis, StatsAxis *yAxis, { return std::make_tuple(-data[idx1].second, idx1) < std::make_tuple(-data[idx2].second, idx2); }); auto it = std::find_if(sorted.begin(), sorted.end(), - [count=totalCount, &data, smallest_slice_percentage](int idx) + [count=totalCount, &data](int idx) { return data[idx].second * 100 / count < smallest_slice_percentage; }); if (it - sorted.begin() < min_slices) { // Take minimum amount of slices below 50%... -- cgit v1.2.3-70-g09d2