1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2019-11-09 21:43:07 +01:00
parent dccf9f7e1a
commit 9ec3956672

View File

@ -421,17 +421,17 @@ static quint32 readPOI(QDataStream &stream, QTextCodec *codec,
RecordHeader rh; RecordHeader rh;
quint8 rs; quint8 rs;
quint32 ds; quint32 ds;
qint32 s1, s2; qint32 lat, lon;
quint16 s3; quint16 s3;
QList<TranslatedString> obj; QList<TranslatedString> obj;
rs = readRecordHeader(stream, rh); rs = readRecordHeader(stream, rh);
stream >> s1 >> s2 >> s3; stream >> lat >> lon >> s3;
stream.skipRawData(s3); stream.skipRawData(s3);
ds = 10 + s3; ds = 10 + s3;
ds += readTranslatedObjects(stream, codec, obj); ds += readTranslatedObjects(stream, codec, obj);
waypoints.append(Waypoint(Coordinates(toWGS(s2), toWGS(s1)))); waypoints.append(Waypoint(Coordinates(toWGS(lon), toWGS(lat))));
if (!obj.isEmpty()) if (!obj.isEmpty())
waypoints.last().setName(obj.first().str()); waypoints.last().setName(obj.first().str());