From e5487f86a69d5524ba351bfe0fe2726036da57fa Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 4 Feb 2020 09:27:35 +0100 Subject: Coding style: remove braces around single-line if blocks Signed-off-by: Berthold Stoeger --- core/qthelper.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'core') 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; } -- cgit v1.2.3-70-g09d2