diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-03 23:24:18 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-06 08:50:22 -0800 |
commit | 1bebf55737d5666d308bd92239e36069c21070f6 (patch) | |
tree | 39cc90338eb52fbae2f5503343cbe0c76df48183 /core/qthelper.cpp | |
parent | 90b0e38ed801e2bab49746a2a961c6012f2906e1 (diff) | |
download | subsurface-1bebf55737d5666d308bd92239e36069c21070f6.tar.gz |
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>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index b8e4822a3..15f3441d8 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -120,9 +120,9 @@ extern "C" char *printGPSCoordsC(const location_t *location) /** * Try to parse in a generic manner a coordinate. */ -static bool parseCoord(const QString& txt, int& pos, const QString& positives, - const QString& negatives, const QString& others, - double& value) +static bool parseCoord(const QString &txt, int &pos, const QString &positives, + const QString &negatives, const QString &others, + double &value) { bool numberDefined = false, degreesDefined = 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. */ -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+)?)"); if (xmlFormat.exactMatch(txt)) { latitude = xmlFormat.cap(1).toDouble(); |