aboutsummaryrefslogtreecommitdiffstats
path: root/stats/pieseries.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2021-01-11 13:22:39 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2021-01-14 20:51:23 +0100
commit5775bd7b27f0c71a78cfe526b971c3f1652b4add (patch)
tree03500f852d7fd11695f4e3c9e83ba8b227c2699d /stats/pieseries.cpp
parentd83c9b524622286d4dcd35d1233dfc722511a5be (diff)
downloadsubsurface-5775bd7b27f0c71a78cfe526b971c3f1652b4add.tar.gz
Silence some compiler warnings
This is what clang suggested in compiler warnings. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'stats/pieseries.cpp')
-rw-r--r--stats/pieseries.cpp2
1 files changed, 1 insertions, 1 deletions
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%...