diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-03-05 09:42:10 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-03-08 16:29:04 -0800 |
commit | d1c89a55e146b3aee677cbaa96dda6dea485457c (patch) | |
tree | d7ec9603134f1adeb98cbf8a920001f7c0e6572f | |
parent | 7446e8cddddcf02b704bdc1a8bfe74609acbb0d9 (diff) | |
download | subsurface-d1c89a55e146b3aee677cbaa96dda6dea485457c.tar.gz |
stats: initialize InformationBox::width and height members
Fixes a Coverity warning. Good style anyway.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | stats/informationbox.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stats/informationbox.cpp b/stats/informationbox.cpp index 29731acc6..df733f4fc 100644 --- a/stats/informationbox.cpp +++ b/stats/informationbox.cpp @@ -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) { } |