mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34: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))
|
if (!parseRecord(ctx))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
tracks.append(TrackData());
|
tracks.append(ctx.segment);
|
||||||
tracks.last().append(ctx.segment);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -247,8 +247,7 @@ bool IGCParser::parse(QFile *file, QList<TrackData> &tracks,
|
|||||||
ctx.date = QDate(1970, 1, 1);
|
ctx.date = QDate(1970, 1, 1);
|
||||||
}
|
}
|
||||||
if (!track) {
|
if (!track) {
|
||||||
tracks.append(TrackData());
|
tracks.append(SegmentData());
|
||||||
tracks.last().append(SegmentData());
|
|
||||||
ctx.time = QTime(0, 0);
|
ctx.time = QTime(0, 0);
|
||||||
track = true;
|
track = true;
|
||||||
}
|
}
|
||||||
|
@ -151,8 +151,7 @@ bool TwoNavParser::parse(QFile *file, QList<TrackData> &tracks,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!track) {
|
if (!track) {
|
||||||
tracks.append(TrackData());
|
tracks.append(SegmentData());
|
||||||
tracks.last().append(SegmentData());
|
|
||||||
track = true;
|
track = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user