From 9655417ad3c55752ec1d53ec3b88c7436585d921 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 5 Mar 2021 08:22:19 +0100 Subject: 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 --- stats/pieseries.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'stats') 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(ChartZValue::Series, pieBorderWidth)), categoryName(categoryName), + radius(0), highlighted(-1), lastClicked(-1) { -- cgit v1.2.3-70-g09d2