aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-07 22:38:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-07 22:41:13 -0800
commit6c0259d5409a72163a53cdce5658183c16b97f5c (patch)
tree9de36d09e7bd817b46c593938680e20c9b1387ec /subsurface-core
parent1a78033ac59cf0722689ccc905a73e09e68b6998 (diff)
downloadsubsurface-6c0259d5409a72163a53cdce5658183c16b97f5c.tar.gz
Compile fix
While the conversion of uint64_t to QVariant works fine with some Qt / compiler combinations, it fails on others. Use Qt's type instead. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/gpslocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp
index 40fb0e54e..b4f5b887c 100644
--- a/subsurface-core/gpslocation.cpp
+++ b/subsurface-core/gpslocation.cpp
@@ -140,7 +140,7 @@ void GpsLocation::newPosition(QGeoPositionInfo pos)
int64_t when = pos.timestamp().toTime_t();
when += gettimezoneoffset(when);
- geoSettings->setValue(QString("gpsFix%1_time").arg(nr), when);
+ geoSettings->setValue(QString("gpsFix%1_time").arg(nr), (quint64)when);
geoSettings->setValue(QString("gpsFix%1_lat").arg(nr), rint(pos.coordinate().latitude() * 1000000));
geoSettings->setValue(QString("gpsFix%1_lon").arg(nr), rint(pos.coordinate().longitude() * 1000000));
geoSettings->sync();
@@ -493,7 +493,7 @@ void GpsLocation::downloadFromServer()
qSort(keys);
for (int i = 0; i < keys.count(); i++) {
struct gpsTracker gt = gpsFixes.value(keys[i]);
- geoSettings->setValue(QString("gpsFix%1_time").arg(i), (uint64_t)gt.when);
+ geoSettings->setValue(QString("gpsFix%1_time").arg(i), (quint64)gt.when);
geoSettings->setValue(QString("gpsFix%1_name").arg(i), gt.name);
geoSettings->setValue(QString("gpsFix%1_lat").arg(i), gt.latitude.udeg);
geoSettings->setValue(QString("gpsFix%1_lon").arg(i), gt.longitude.udeg);