1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2024-02-29 08:19:10 +01:00
parent a6b408da4a
commit 19fcccb6aa

View File

@ -246,8 +246,7 @@ static QString sistat(uint type)
MapData::Point::Point(uint type, const Coordinates &c, const QString &label, MapData::Point::Point(uint type, const Coordinates &c, const QString &label,
const QVector<QByteArray> &params) : _type(type), _pos(c), _label(label) const QVector<QByteArray> &params) : _type(type), _pos(c), _label(label)
{ {
uint hash = (uint)qHash(QPair<double,double>(c.lon(), c.lat())); _id = ((quint64)order(type))<<32 | (uint)qHash(c);
_id = ((quint64)order(type))<<32 | hash;
if (type>>16 == I_DISMAR && params.size()) { if (type>>16 == I_DISMAR && params.size()) {
_label = hUnits((type>>8)&0xFF) + " " + QString::fromLatin1(params.at(0)); _label = hUnits((type>>8)&0xFF) + " " + QString::fromLatin1(params.at(0));