summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-28 22:19:17 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-29 00:09:31 +0000
commita0cc02dfe8a82e12dc1eb902eeb906b2f9edc80b (patch)
tree1fd5f27b963fb6b691197a40556e57da147c92d2 /core
parentc980216dc0e15a21b245a902870f9b8c5a18275c (diff)
downloadsubsurface-a0cc02dfe8a82e12dc1eb902eeb906b2f9edc80b.tar.gz
Dive list: don't pass dive_site via uintptr_t through QML
Now that struct dive_site * is a proper Q_METATYPE it is not necessary anymore to pass dive-sites as opaque uintptr_t types. Simply pass a QVariants or directly via dive_site *. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index a1233c3ea..78b1c0d3c 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -129,7 +129,7 @@ QString DiveObjectHelper::gps_decimal() const
QVariant DiveObjectHelper::dive_site() const
{
- return QVariant::fromValue((uintptr_t)m_dive->dive_site);
+ return QVariant::fromValue(m_dive->dive_site);
}
QString DiveObjectHelper::duration() const