mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: pass depth_t to depth_to_* functions
This is a drop in the ocean. Make the usage of the unit-types a bit more consistent throughout the code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
661ce3f9c7
commit
da17f6a08c
13 changed files with 216 additions and 212 deletions
12
core/dive.h
12
core/dive.h
|
|
@ -116,12 +116,12 @@ struct dive {
|
|||
std::string get_country() const;
|
||||
std::string get_location() const;
|
||||
|
||||
int depth_to_mbar(int depth) const;
|
||||
double depth_to_mbarf(int depth) const;
|
||||
double depth_to_bar(int depth) const;
|
||||
double depth_to_atm(int depth) const;
|
||||
int rel_mbar_to_depth(int mbar) const;
|
||||
int mbar_to_depth(int mbar) const;
|
||||
int depth_to_mbar(depth_t depth) const;
|
||||
double depth_to_mbarf(depth_t depth) const;
|
||||
double depth_to_bar(depth_t depth) const;
|
||||
double depth_to_atm(depth_t depth) const;
|
||||
depth_t rel_mbar_to_depth(int mbar) const;
|
||||
depth_t mbar_to_depth(int mbar) const;
|
||||
|
||||
pressure_t calculate_surface_pressure() const;
|
||||
pressure_t un_fixup_surface_pressure() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue