summaryrefslogtreecommitdiffstats
path: root/profile-widget/tankitem.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-28 18:04:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-29 09:14:20 -0800
commit555f789b55330758cb466ac774eb85476a0cba5e (patch)
tree185cf4f71f5e068358118435c4e6e56cf18b870d /profile-widget/tankitem.cpp
parenta8c1f405f4cf4059386b9c2c69890b8284c3bd43 (diff)
downloadsubsurface-555f789b55330758cb466ac774eb85476a0cba5e.tar.gz
cleanup: Uninitialized pointer field
CID 45172 And one non initalized member hAxis could be removed as it is not used. Surprisingly, Coverity did not see this. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'profile-widget/tankitem.cpp')
-rw-r--r--profile-widget/tankitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp
index 24c13aed6..2a8449827 100644
--- a/profile-widget/tankitem.cpp
+++ b/profile-widget/tankitem.cpp
@@ -31,6 +31,7 @@ TankItem::TankItem(QObject *parent) :
trimixGradient.setColorAt(1.0, red);
trimix = trimixGradient;
air = blue;
+ hAxis = Q_NULLPTR;
memset(&diveCylinderStore, 0, sizeof(diveCylinderStore));
}