Coding style: remove braces around single-line if blocks

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-02-04 09:27:35 +01:00 committed by Dirk Hohndel
parent 1bebf55737
commit e5487f86a6

View file

@ -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;
}