mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a8c1f405f4
commit
555f789b55
2 changed files with 1 additions and 1 deletions
|
@ -31,6 +31,7 @@ TankItem::TankItem(QObject *parent) :
|
||||||
trimixGradient.setColorAt(1.0, red);
|
trimixGradient.setColorAt(1.0, red);
|
||||||
trimix = trimixGradient;
|
trimix = trimixGradient;
|
||||||
air = blue;
|
air = blue;
|
||||||
|
hAxis = Q_NULLPTR;
|
||||||
memset(&diveCylinderStore, 0, sizeof(diveCylinderStore));
|
memset(&diveCylinderStore, 0, sizeof(diveCylinderStore));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ private:
|
||||||
void createBar(qreal x, qreal w, struct gasmix *gas);
|
void createBar(qreal x, qreal w, struct gasmix *gas);
|
||||||
DivePlotDataModel *dataModel;
|
DivePlotDataModel *dataModel;
|
||||||
DiveCartesianAxis *hAxis;
|
DiveCartesianAxis *hAxis;
|
||||||
int hDataColumn;
|
|
||||||
struct dive diveCylinderStore;
|
struct dive diveCylinderStore;
|
||||||
struct plot_data *pInfoEntry;
|
struct plot_data *pInfoEntry;
|
||||||
int pInfoNr;
|
int pInfoNr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue