Coding style: move & from type to variable

Trivial white-space cleanup according to coding style document.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-02-03 23:24:18 +01:00 committed by Dirk Hohndel
parent 90b0e38ed8
commit 1bebf55737

View file

@ -120,9 +120,9 @@ extern "C" char *printGPSCoordsC(const location_t *location)
/** /**
* Try to parse in a generic manner a coordinate. * Try to parse in a generic manner a coordinate.
*/ */
static bool parseCoord(const QString& txt, int& pos, const QString& positives, static bool parseCoord(const QString &txt, int &pos, const QString &positives,
const QString& negatives, const QString& others, const QString &negatives, const QString &others,
double& value) double &value)
{ {
bool numberDefined = false, degreesDefined = false, bool numberDefined = false, degreesDefined = false,
minutesDefined = false, secondsDefined = false; minutesDefined = false, secondsDefined = false;
@ -221,7 +221,7 @@ static bool parseCoord(const QString& txt, int& pos, const QString& positives,
/** /**
* Parse special coordinate formats that cannot be handled by parseCoord. * Parse special coordinate formats that cannot be handled by parseCoord.
*/ */
static bool parseSpecialCoords(const QString& txt, double& latitude, double& longitude) { static bool parseSpecialCoords(const QString &txt, double &latitude, double &longitude) {
QRegExp xmlFormat("(-?\\d+(?:\\.\\d+)?),?\\s+(-?\\d+(?:\\.\\d+)?)"); QRegExp xmlFormat("(-?\\d+(?:\\.\\d+)?),?\\s+(-?\\d+(?:\\.\\d+)?)");
if (xmlFormat.exactMatch(txt)) { if (xmlFormat.exactMatch(txt)) {
latitude = xmlFormat.cap(1).toDouble(); latitude = xmlFormat.cap(1).toDouble();