mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move get_dive_salinity() to struct dive
Feels natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0aa4efb3d9
commit
718523e01d
3 changed files with 4 additions and 4 deletions
|
@ -704,9 +704,9 @@ static void fixup_water_salinity(struct dive &dive)
|
|||
dive.salinity = (sum + nr / 2) / nr;
|
||||
}
|
||||
|
||||
int get_dive_salinity(const struct dive *dive)
|
||||
int dive::get_salinity() const
|
||||
{
|
||||
return dive->user_salinity ? dive->user_salinity : dive->salinity;
|
||||
return user_salinity ? user_salinity : salinity;
|
||||
}
|
||||
|
||||
static void fixup_meandepth(struct dive &dive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue