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>
This commit is contained in:
Berthold Stoeger 2021-03-05 08:22:19 +01:00
parent 6dccfc75dc
commit 9655417ad3

View file

@ -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)
{