From 19fcccb6aacf9dedeceb1047104def9046e083da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 29 Feb 2024 08:19:10 +0100 Subject: [PATCH] Code cleanup --- src/map/ENC/mapdata.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/map/ENC/mapdata.cpp b/src/map/ENC/mapdata.cpp index c460a087..6458b429 100644 --- a/src/map/ENC/mapdata.cpp +++ b/src/map/ENC/mapdata.cpp @@ -246,8 +246,7 @@ static QString sistat(uint type) MapData::Point::Point(uint type, const Coordinates &c, const QString &label, const QVector ¶ms) : _type(type), _pos(c), _label(label) { - uint hash = (uint)qHash(QPair(c.lon(), c.lat())); - _id = ((quint64)order(type))<<32 | hash; + _id = ((quint64)order(type))<<32 | (uint)qHash(c); if (type>>16 == I_DISMAR && params.size()) { _label = hUnits((type>>8)&0xFF) + " " + QString::fromLatin1(params.at(0));