mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: use C++ structures for tanksystem info
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1af00703b3
commit
3c1401785b
13 changed files with 93 additions and 123 deletions
|
@ -1283,9 +1283,8 @@ void QMLManager::commitChanges(QString diveId, QString number, QString date, QSt
|
|||
if (state != "add" && !is_cylinder_used(d, j))
|
||||
continue;
|
||||
|
||||
for (int i = 0; i < tank_info_table.nr; i++) {
|
||||
const tank_info &ti = tank_info_table.infos[i];
|
||||
if (ti.name == usedCylinder[k] ) {
|
||||
for (const tank_info &ti: tank_info_table) {
|
||||
if (ti.name == usedCylinder[k].toStdString()) {
|
||||
if (ti.ml > 0){
|
||||
size = ti.ml;
|
||||
wp = ti.bar * 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue