diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-03-05 08:22:19 +0100 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-03-05 08:22:19 +0100 |
commit | 9655417ad3c55752ec1d53ec3b88c7436585d921 (patch) | |
tree | a7a8c2149f8db4b83ff123aa31d15ea4577c3369 /stats | |
parent | 6dccfc75dca49e901aecc2e76310cef3ba1a60a4 (diff) | |
download | subsurface-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.cpp | 1 |
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) { |