diff options
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/gpslocation.cpp | 3 |
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 >) 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; |