diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-04 09:27:35 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-06 08:50:22 -0800 |
commit | e5487f86a69d5524ba351bfe0fe2726036da57fa (patch) | |
tree | eaed9e475a5ebe4189ad4ebe35328da21830221f /core/qthelper.cpp | |
parent | 1bebf55737d5666d308bd92239e36069c21070f6 (diff) | |
download | subsurface-e5487f86a69d5524ba351bfe0fe2726036da57fa.tar.gz |
Coding style: remove braces around single-line if blocks
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 15f3441d8..cb1cd1159 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -205,15 +205,14 @@ static bool parseCoord(const QString &txt, int &pos, const QString &positives, } ++pos; } - if (!degreesDefined && numberDefined) { + if (!degreesDefined && numberDefined) value = number; //just a single number => degrees - } else if (!minutesDefined && numberDefined) { + else if (!minutesDefined && numberDefined) value += number / 60.0; - } else if (!secondsDefined && numberDefined) { + else if (!secondsDefined && numberDefined) value += number / 3600.0; - } else if (numberDefined) { + else if (numberDefined) return false; - } if (sign == -1) value *= -1.0; return true; } |