mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:13:24 +00:00
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:
parent
90b0e38ed8
commit
1bebf55737
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue