mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make sure we don't use the 'changed' flag uninitialized
Valgrind reported this while I was testing the previous commit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c9e7528370
commit
def9e3fc1b
1 changed files with 6 additions and 2 deletions
|
@ -71,7 +71,9 @@ const QPixmap &trashIcon()
|
||||||
return *trashIconPixmap;
|
return *trashIconPixmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
CylindersModel::CylindersModel(QObject *parent) : rows(0)
|
CylindersModel::CylindersModel(QObject *parent) :
|
||||||
|
rows(0),
|
||||||
|
changed(false)
|
||||||
{
|
{
|
||||||
// enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH};
|
// enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH};
|
||||||
setHeaderDataStrings(QStringList() << "" << tr("Type") << tr("Size") << tr("Work press.") << tr("Start press.") << tr("End press.") << trUtf8("O" UTF8_SUBSCRIPT_2 "%") << tr("He%")
|
setHeaderDataStrings(QStringList() << "" << tr("Type") << tr("Size") << tr("Work press.") << tr("Start press.") << tr("End press.") << trUtf8("O" UTF8_SUBSCRIPT_2 "%") << tr("He%")
|
||||||
|
@ -411,7 +413,9 @@ void CylindersModel::remove(const QModelIndex &index)
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
}
|
}
|
||||||
|
|
||||||
WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent), rows(0)
|
WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent),
|
||||||
|
rows(0),
|
||||||
|
changed(false)
|
||||||
{
|
{
|
||||||
//enum Column {REMOVE, TYPE, WEIGHT};
|
//enum Column {REMOVE, TYPE, WEIGHT};
|
||||||
setHeaderDataStrings(QStringList() << tr("") << tr("Type") << tr("Weight"));
|
setHeaderDataStrings(QStringList() << tr("") << tr("Type") << tr("Weight"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue