1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2024-03-10 08:09:44 +01:00
parent 4417b3d5e2
commit f6a14e6008
3 changed files with 3 additions and 6 deletions

View File

@ -478,8 +478,7 @@ bool FITParser::parse(QFile *file, QList<TrackData> &tracks,
if (!parseRecord(ctx))
return false;
tracks.append(TrackData());
tracks.last().append(ctx.segment);
tracks.append(ctx.segment);
return true;
}

View File

@ -247,8 +247,7 @@ bool IGCParser::parse(QFile *file, QList<TrackData> &tracks,
ctx.date = QDate(1970, 1, 1);
}
if (!track) {
tracks.append(TrackData());
tracks.last().append(SegmentData());
tracks.append(SegmentData());
ctx.time = QTime(0, 0);
track = true;
}

View File

@ -151,8 +151,7 @@ bool TwoNavParser::parse(QFile *file, QList<TrackData> &tracks,
}
if (!track) {
tracks.append(TrackData());
tracks.last().append(SegmentData());
tracks.append(SegmentData());
track = true;
}