mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Address uninitialized member warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
85dfb88f51
commit
1ecc9b0cc0
19 changed files with 50 additions and 18 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue