profile: initialize DiveEventItem::dive to null

To simplify debugging, this should be initialized. Found by coverity.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-03-05 08:30:23 +01:00
parent 9655417ad3
commit 3fcac9022c

View file

@ -18,7 +18,8 @@ DiveEventItem::DiveEventItem(QGraphicsItem *parent) : DivePixmapItem(parent),
vAxis(NULL),
hAxis(NULL),
dataModel(NULL),
internalEvent(NULL)
internalEvent(NULL),
dive(NULL)
{
setFlag(ItemIgnoresTransformations);
}