mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									1a78033ac5
								
							
						
					
					
						commit
						6c0259d540
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue