aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/gpslocation.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-10 22:24:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-10 22:24:30 -0800
commit602d1227a7b7d9c9532e55c8ab3a12fedef51580 (patch)
treea96ac2dd31b010f05dace5a7d34337aa611610bc /subsurface-core/gpslocation.cpp
parent82b2b709bc4b6733d2f67b8d2bc0943daf80c732 (diff)
downloadsubsurface-602d1227a7b7d9c9532e55c8ab3a12fedef51580.tar.gz
Compile fix for older compilers
Not every compiler supports non-trivial initializers. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/gpslocation.cpp')
-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;