1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-26 04:00:49 +01:00

Fixed QT4 build

This commit is contained in:
Martin Tůma 2019-08-15 22:10:25 +02:00
parent ecb82952f6
commit 967e307be9
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
#include <QStringList>
#include "csv.h" #include "csv.h"
/* /*

View File

@ -1,3 +1,4 @@
#include <QStringList>
#include "csv.h" #include "csv.h"
#include "csvparser.h" #include "csvparser.h"

View File

@ -1,4 +1,5 @@
#include <cmath> #include <cmath>
#include <QStringList>
#include "csv.h" #include "csv.h"
#include "cupparser.h" #include "cupparser.h"
@ -21,7 +22,7 @@ static double latitude(const QString &str)
return NAN; return NAN;
double dd = deg + min/60.0; double dd = deg + min/60.0;
return (str.right(1) == 'S') ? -dd : dd; return (str.right(1) == "S") ? -dd : dd;
} }
static double longitude(const QString &str) static double longitude(const QString &str)
@ -38,7 +39,7 @@ static double longitude(const QString &str)
return NAN; return NAN;
double dd = deg + min/60.0; double dd = deg + min/60.0;
return (str.right(1) == 'W') ? -dd : dd; return (str.right(1) == "W") ? -dd : dd;
} }
static double elevation(const QString &str) static double elevation(const QString &str)