mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Coding style: remove braces around single-line if blocks
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1bebf55737
commit
e5487f86a6
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue