mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:13:24 +00:00
Compile fix for older compilers
Not every compiler supports non-trivial initializers. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
82b2b709bc
commit
602d1227a7
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue