mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: pass all parameters to weightsystem_t
With -Wextra, gcc/g++ complains that compound initialization of weightsystem_t misses the auto_filled parameter. Add it. For C++ code we might think about writing a constructor. However, we use two versions: with and without copied string. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d89ef3d906
commit
c893d19ea4
5 changed files with 5 additions and 5 deletions
|
@ -303,7 +303,7 @@ void WSInfoDelegate::setModelData(QWidget *, QAbstractItemModel *, const QModelI
|
|||
grams = wsim->data(wsim->index(row, WSInfoModel::GR)).toInt();
|
||||
}
|
||||
|
||||
mymodel->setTempWS(currCombo.currRow, weightsystem_t{ { grams }, copy_qstring(weightName) });
|
||||
mymodel->setTempWS(currCombo.currRow, weightsystem_t{ { grams }, copy_qstring(weightName), false });
|
||||
}
|
||||
|
||||
WSInfoDelegate::WSInfoDelegate(QObject *parent) : ComboBoxDelegate(WSInfoModel::instance(), parent, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue