aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/gpslocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp
index e5f38dc1d..f1aa3a85d 100644
--- a/subsurface-core/gpslocation.cpp
+++ b/subsurface-core/gpslocation.cpp
@@ -411,7 +411,8 @@ void GpsLocation::deleteFixFromStorage(gpsTracker &gt)
void GpsLocation::deleteGpsFix(qint64 when)
{
- struct gpsTracker defaultTracker = { .when = 0 };
+ struct gpsTracker defaultTracker;
+ defaultTracker.when = 0;
struct gpsTracker deletedTracker = m_trackers.value(when, defaultTracker);
if (deletedTracker.when != when) {
qDebug() << "can't find tracker for timestamp" << when;