diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-11-26 23:11:30 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-27 08:30:12 -0800 |
commit | 3fd39a7a87bf438f012167303a564deac72d267a (patch) | |
tree | beef1275b861afb5b91923b0b19b33f3dc04dfe3 /qt-ui | |
parent | c94101dd4fc6a92e0039aa4649f17db5f652c766 (diff) | |
download | subsurface-3fd39a7a87bf438f012167303a564deac72d267a.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index e9a19ffea..5efac70a9 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -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; |