From 555f789b55330758cb466ac774eb85476a0cba5e Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Thu, 28 Dec 2017 18:04:09 +0100 Subject: [PATCH] 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 --- profile-widget/tankitem.cpp | 1 + profile-widget/tankitem.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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)); } diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h index 91f19dfde..713bc92dc 100644 --- a/profile-widget/tankitem.h +++ b/profile-widget/tankitem.h @@ -28,7 +28,6 @@ private: void createBar(qreal x, qreal w, struct gasmix *gas); DivePlotDataModel *dataModel; DiveCartesianAxis *hAxis; - int hDataColumn; struct dive diveCylinderStore; struct plot_data *pInfoEntry; int pInfoNr;