diff options
author | Robert C. Helling <helling@atdotde.de> | 2021-01-11 13:22:39 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2021-01-14 20:51:23 +0100 |
commit | 5775bd7b27f0c71a78cfe526b971c3f1652b4add (patch) | |
tree | 03500f852d7fd11695f4e3c9e83ba8b227c2699d /stats | |
parent | d83c9b524622286d4dcd35d1233dfc722511a5be (diff) | |
download | subsurface-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')
-rw-r--r-- | stats/barseries.h | 4 | ||||
-rw-r--r-- | stats/boxseries.h | 2 | ||||
-rw-r--r-- | stats/pieseries.cpp | 2 | ||||
-rw-r--r-- | stats/pieseries.h | 2 | ||||
-rw-r--r-- | stats/scatterseries.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/stats/barseries.h b/stats/barseries.h index 299998bfb..0c8c34ffd 100644 --- a/stats/barseries.h +++ b/stats/barseries.h @@ -13,8 +13,8 @@ #include <QGraphicsRectItem> class QGraphicsScene; -class InformationBox; -class StatsVariable; +struct InformationBox; +struct StatsVariable; class BarSeries : public StatsSeries { public: diff --git a/stats/boxseries.h b/stats/boxseries.h index 175ad771e..dde9014f6 100644 --- a/stats/boxseries.h +++ b/stats/boxseries.h @@ -13,7 +13,7 @@ #include <QGraphicsLineItem> #include <QGraphicsRectItem> -class InformationBox; +struct InformationBox; class QGraphicsScene; class BoxSeries : public StatsSeries { 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%... diff --git a/stats/pieseries.h b/stats/pieseries.h index c7e2af319..646c4bfbe 100644 --- a/stats/pieseries.h +++ b/stats/pieseries.h @@ -9,7 +9,7 @@ #include <vector> #include <QString> -class InformationBox; +struct InformationBox; class QGraphicsEllipseItem; class QGraphicsScene; class QGraphicsSimpleTextItem; diff --git a/stats/scatterseries.h b/stats/scatterseries.h index ec25369ae..5f8b4b2e6 100644 --- a/stats/scatterseries.h +++ b/stats/scatterseries.h @@ -12,7 +12,7 @@ class QGraphicsPixmapItem; class QGraphicsScene; -class InformationBox; +struct InformationBox; struct StatsVariable; struct dive; |