Address uninitialized member warnings

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-22 06:42:02 -07:00
parent 85dfb88f51
commit 1ecc9b0cc0
19 changed files with 50 additions and 18 deletions

View file

@ -917,7 +917,9 @@ void PartialPressureGasItem::modelDataChanged(const QModelIndex &topLeft, const
alertPolygons.clear();
QSettings s;
s.beginGroup("TecDetails");
double threshold = *thresholdPtr;
double threshold = 0.0;
if (thresholdPtr)
threshold = *thresholdPtr;
bool inAlertFragment = false;
for (int i = 0; i < dataModel->rowCount(); i++, entry++) {
double value = dataModel->index(i, vDataColumn).data().toDouble();
@ -962,7 +964,8 @@ void PartialPressureGasItem::setThreshouldSettingsKey(double *prefPointer)
thresholdPtr = prefPointer;
}
PartialPressureGasItem::PartialPressureGasItem()
PartialPressureGasItem::PartialPressureGasItem() :
thresholdPtr(NULL)
{
}