summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index bcf78b5d1..d8626f9d7 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -161,10 +161,13 @@ bool parseGpsText(const QString &gps_text, double *latitude, double *longitude)
return false;
}
-bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed)
+bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed_out)
{
double latitude, longitude;
int latudeg, longudeg;
+ bool ignore;
+ bool *parsed = parsed_out ?: &ignore;
+
/* if we have a master and the dive's gps address is different from it,
* don't change the dive */