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
|
@ -216,7 +216,7 @@ bool StatsQuartiles::isValid() const
|
|||
// Define an ordering for gas types
|
||||
// invalid < air < ean (including oxygen) < trimix
|
||||
// The latter two are sorted by (helium, oxygen)
|
||||
// This is in analogy to the global get_dive_gas() function.
|
||||
// This is in analogy to the dive::get_maximal_gas() function.
|
||||
static bool operator<(const gas_bin_t &t1, const gas_bin_t &t2)
|
||||
{
|
||||
if (t1.type != t2.type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue