mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Core: remove variable name conflict
Having a parameter representing a location with the same name as a global variable representing our locale is confusing. Found via LGTM.com Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									8bbc375fab
								
							
						
					
					
						commit
						b457965f50
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -72,16 +72,16 @@ QString distance_string(int distanceInMeters)
 | 
				
			||||||
	return str;
 | 
						return str;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern "C" const char *printGPSCoords(const location_t *loc)
 | 
					extern "C" const char *printGPSCoords(const location_t *location)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int lat = loc->lat.udeg;
 | 
						int lat = location->lat.udeg;
 | 
				
			||||||
	int lon = loc->lon.udeg;
 | 
						int lon = location->lon.udeg;
 | 
				
			||||||
	unsigned int latdeg, londeg;
 | 
						unsigned int latdeg, londeg;
 | 
				
			||||||
	unsigned int latmin, lonmin;
 | 
						unsigned int latmin, lonmin;
 | 
				
			||||||
	double latsec, lonsec;
 | 
						double latsec, lonsec;
 | 
				
			||||||
	QString lath, lonh, result;
 | 
						QString lath, lonh, result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!has_location(loc))
 | 
						if (!has_location(location))
 | 
				
			||||||
		return strdup("");
 | 
							return strdup("");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (prefs.coordinates_traditional) {
 | 
						if (prefs.coordinates_traditional) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue