From 967e307be905f97e4be06fb2737d7dccc9be164b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 15 Aug 2019 22:10:25 +0200 Subject: [PATCH] Fixed QT4 build --- src/data/csv.cpp | 1 + src/data/csvparser.cpp | 1 + src/data/cupparser.cpp | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/data/csv.cpp b/src/data/csv.cpp index 25ebad24..075b0926 100644 --- a/src/data/csv.cpp +++ b/src/data/csv.cpp @@ -1,3 +1,4 @@ +#include #include "csv.h" /* diff --git a/src/data/csvparser.cpp b/src/data/csvparser.cpp index 6d89dbfb..cefaeed6 100644 --- a/src/data/csvparser.cpp +++ b/src/data/csvparser.cpp @@ -1,3 +1,4 @@ +#include #include "csv.h" #include "csvparser.h" diff --git a/src/data/cupparser.cpp b/src/data/cupparser.cpp index 79a9228c..35ace31f 100644 --- a/src/data/cupparser.cpp +++ b/src/data/cupparser.cpp @@ -1,4 +1,5 @@ #include +#include #include "csv.h" #include "cupparser.h" @@ -21,7 +22,7 @@ static double latitude(const QString &str) return NAN; 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) @@ -38,7 +39,7 @@ static double longitude(const QString &str) return NAN; 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)