aboutsummaryrefslogtreecommitdiffstats
path: root/stats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-03-05 08:22:19 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-03-05 08:22:19 +0100
commit9655417ad3c55752ec1d53ec3b88c7436585d921 (patch)
treea7a8c2149f8db4b83ff123aa31d15ea4577c3369 /stats
parent6dccfc75dca49e901aecc2e76310cef3ba1a60a4 (diff)
downloadsubsurface-9655417ad3c55752ec1d53ec3b88c7436585d921.tar.gz
stats: initialize PieSeries::radius to 0 in constructor
This silences a Coverity warning. That what harmless, but it's probably good practice to initialize all members. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats')
-rw-r--r--stats/pieseries.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/stats/pieseries.cpp b/stats/pieseries.cpp
index 994ca8a57..c425fffd2 100644
--- a/stats/pieseries.cpp
+++ b/stats/pieseries.cpp
@@ -81,6 +81,7 @@ PieSeries::PieSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis, const
StatsSeries(view, xAxis, yAxis),
item(view.createChartItem<ChartPieItem>(ChartZValue::Series, pieBorderWidth)),
categoryName(categoryName),
+ radius(0),
highlighted(-1),
lastClicked(-1)
{