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>
This commit is contained in:
Jan Mulder 2017-12-28 18:04:09 +01:00 committed by Dirk Hohndel
parent a8c1f405f4
commit 555f789b55
2 changed files with 1 additions and 1 deletions

View file

@ -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));
}

View file

@ -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;