mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make calculate_cns() member of dive_table
This function implicitely accessed the global divelog. To make that explicit make it a member of dive_table, such that the caller must access it via the global variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f3b8e3c4aa
commit
b34116e2e2
8 changed files with 68 additions and 67 deletions
|
@ -1092,7 +1092,7 @@ struct dive *fixup_dive(struct dive *dive)
|
|||
if (same_rounded_pressure(cyl.sample_end, cyl.end))
|
||||
cyl.end.mbar = 0;
|
||||
}
|
||||
update_cylinder_related_info(dive);
|
||||
divelog.dives.update_cylinder_related_info(dive);
|
||||
for (auto &ws: dive->weightsystems)
|
||||
add_weightsystem_description(ws);
|
||||
/* we should always have a uniq ID as that gets assigned during dive creation,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue