diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-12-20 09:20:18 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-20 09:53:06 -0800 |
commit | 4ab58d6b47e8786d0a10c1308ee487e10af7fa83 (patch) | |
tree | cdfc5b1c428c09e48973ac651d206325675a55e5 /qt-ui/diveplanner.cpp | |
parent | f0da41c937b9381e67a57b8103bbf2d4aca7bb39 (diff) | |
download | subsurface-4ab58d6b47e8786d0a10c1308ee487e10af7fa83.tar.gz |
Use M_OR_FT macro instead of switch statement
This is easier to read and also avoids an incorrect gcc warning.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 223d9d657..303327d42 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -30,8 +30,6 @@ #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) : (feet_to_mm(_f))) - QString gasToStr(const int o2Permille, const int hePermille) { uint o2 = (o2Permille + 5) / 10, he = (hePermille + 5) / 10; QString result = is_air(o2Permille, hePermille) ? QObject::tr("AIR") |