core: move cylinder related functions to struct dive

Seems natural in a C++ code base.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-25 07:43:32 +02:00 committed by bstoeger
parent 3aab33ba4c
commit 1b593dc56c
29 changed files with 250 additions and 259 deletions

View file

@ -351,7 +351,7 @@ QVector<QPair<QString, int>> selectedDivesGasUsed()
std::vector<volume_t> diveGases = get_gas_used(d);
for (size_t j = 0; j < d->cylinders.size(); j++) {
if (diveGases[j].mliter) {
QString gasName = gasname(get_cylinder(d, j)->gasmix);
QString gasName = gasname(d->get_cylinder(j)->gasmix);
gasUsed[gasName] += diveGases[j].mliter;
}
}