From 46cdf24e1111a0f1e3c393c8b5fe0707df38765b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 1 May 2020 13:46:54 +0200 Subject: cleanup: only include QString in desktop-widgets/importgps.h This included QFile, which is fatter and not needed here. Include QFile only in the actual translation unit. Signed-off-by: Berthold Stoeger --- core/parse-gpx.cpp | 1 + core/parse-gpx.h | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/parse-gpx.cpp b/core/parse-gpx.cpp index d00e59d4d..9649780c7 100644 --- a/core/parse-gpx.cpp +++ b/core/parse-gpx.cpp @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "core/parse-gpx.h" #include "core/dive.h" +#include #include // Find the coordinates at the time specified in coords.start_dive diff --git a/core/parse-gpx.h b/core/parse-gpx.h index f051a65ae..92be396ec 100644 --- a/core/parse-gpx.h +++ b/core/parse-gpx.h @@ -2,8 +2,7 @@ #ifndef PARSE_GPX_H #define PARSE_GPX_H - -#include +#include struct dive_coords { // This structure holds important information after parsing the GPX file: time_t start_dive; // Start time of the current dive, obtained using current_dive (local time) @@ -19,4 +18,3 @@ struct dive_coords { // This structure holds important information after int getCoordsFromGPXFile(dive_coords *coords, QString fileName); #endif - -- cgit v1.2.3-70-g09d2