mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move get_dive_gas() to struct dive
It is unclear why this was declared in divelist.h. Moreover, rename it to get_maximal_gas() to better reflect what it does. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4d7291d4a1
commit
3aab33ba4c
8 changed files with 44 additions and 48 deletions
|
@ -259,8 +259,7 @@ QString formatDiveDateTime(const dive *d)
|
|||
|
||||
QString formatDiveGasString(const dive *d)
|
||||
{
|
||||
int o2, he, o2max;
|
||||
get_dive_gas(d, &o2, &he, &o2max);
|
||||
auto [o2, he, o2max ] = d->get_maximal_gas();
|
||||
o2 = (o2 + 5) / 10;
|
||||
he = (he + 5) / 10;
|
||||
o2max = (o2max + 5) / 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue