stats: initialize InformationBox::width and height members

Fixes a Coverity warning. Good style anyway.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-03-05 09:42:10 +01:00 committed by Dirk Hohndel
parent 7446e8cddd
commit d1c89a55e1

View file

@ -12,7 +12,9 @@ static const int distanceFromPointer = 10; // Distance to place box from mouse p
InformationBox::InformationBox(StatsView &v) :
ChartRectItem(v, ChartZValue::InformationBox,
QPen(informationBorderColor, informationBorder),
QBrush(informationColor), informationBorderRadius)
QBrush(informationColor), informationBorderRadius),
width(0.0),
height(0.0)
{
}