mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove some constants and use helpers instead
We have allot of helpers, use them instead of local variants. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c94101dd4f
commit
3fd39a7a87
4 changed files with 12 additions and 12 deletions
|
|
@ -30,7 +30,7 @@
|
|||
#define MAX_DEPTH M_OR_FT(150, 450)
|
||||
#define MIN_DEPTH M_OR_FT(20, 60)
|
||||
|
||||
#define M_OR_FT(_m,_f) ((prefs.units.length == units::METERS) ? ((_m) * 1000) : ((_f) * 304.8))
|
||||
#define M_OR_FT(_m,_f) ((prefs.units.length == units::METERS) ? ((_m) * 1000) : (feet_to_mm(_f)))
|
||||
|
||||
QString gasToStr(const int o2Permille, const int hePermille) {
|
||||
uint o2 = (o2Permille + 5) / 10, he = (hePermille + 5) / 10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue