summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stats/barseries.h4
-rw-r--r--stats/boxseries.h2
-rw-r--r--stats/pieseries.cpp2
-rw-r--r--stats/pieseries.h2
-rw-r--r--stats/scatterseries.h2
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;