Dive site: use an array of pointers in reloadMapLocations()

MapWidgetHelper::reloadMapLocations() used an array of uuids to
add dive sites to the map only once. Replace this by an array
of pointers. This is a small piece of a larger effort to remove
dive site UUIDs.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-10-25 20:58:54 +02:00 committed by Dirk Hohndel
parent 75b5d61522
commit f41bb32428
2 changed files with 4 additions and 4 deletions

View file

@ -129,7 +129,7 @@ QString DiveObjectHelper::gps_decimal() const
QVariant DiveObjectHelper::dive_site() const
{
return QVariant::fromValue((void *)get_dive_site_by_uuid(m_dive->dive_site_uuid));
return QVariant::fromValue((uintptr_t)get_dive_site_by_uuid(m_dive->dive_site_uuid));
}
QString DiveObjectHelper::duration() const