mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
6dccfc75dc
commit
9655417ad3
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue