From 6c0259d5409a72163a53cdce5658183c16b97f5c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 7 Jan 2016 22:38:30 -0800 Subject: 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 --- subsurface-core/gpslocation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subsurface-core/gpslocation.cpp') 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); -- cgit v1.2.3-70-g09d2