mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Code cleanup
This commit is contained in:
parent
4417b3d5e2
commit
f6a14e6008
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user