aboutsummaryrefslogtreecommitdiffstats
path: root/stats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-03-05 09:42:10 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-03-08 16:29:04 -0800
commitd1c89a55e146b3aee677cbaa96dda6dea485457c (patch)
treed7ec9603134f1adeb98cbf8a920001f7c0e6572f /stats
parent7446e8cddddcf02b704bdc1a8bfe74609acbb0d9 (diff)
downloadsubsurface-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>
Diffstat (limited to 'stats')
-rw-r--r--stats/informationbox.cpp4
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)
{
}