mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence some compiler warnings
This is what clang suggested in compiler warnings. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
d83c9b5246
commit
5775bd7b27
5 changed files with 6 additions and 6 deletions
|
@ -13,8 +13,8 @@
|
|||
#include <QGraphicsRectItem>
|
||||
|
||||
class QGraphicsScene;
|
||||
class InformationBox;
|
||||
class StatsVariable;
|
||||
struct InformationBox;
|
||||
struct StatsVariable;
|
||||
|
||||
class BarSeries : public StatsSeries {
|
||||
public:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <QGraphicsLineItem>
|
||||
#include <QGraphicsRectItem>
|
||||
|
||||
class InformationBox;
|
||||
struct InformationBox;
|
||||
class QGraphicsScene;
|
||||
|
||||
class BoxSeries : public StatsSeries {
|
||||
|
|
|
@ -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%...
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <vector>
|
||||
#include <QString>
|
||||
|
||||
class InformationBox;
|
||||
struct InformationBox;
|
||||
class QGraphicsEllipseItem;
|
||||
class QGraphicsScene;
|
||||
class QGraphicsSimpleTextItem;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
class QGraphicsPixmapItem;
|
||||
class QGraphicsScene;
|
||||
class InformationBox;
|
||||
struct InformationBox;
|
||||
struct StatsVariable;
|
||||
struct dive;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue