From b457965f50e7e0777a5b55e19d6fb0e848ee985d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 17 Mar 2019 13:55:11 -0700 Subject: 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 --- core/qthelper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/qthelper.cpp b/core/qthelper.cpp index d47a39fdf..89dd1befb 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -72,16 +72,16 @@ QString distance_string(int distanceInMeters) 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 lon = loc->lon.udeg; + int lat = location->lat.udeg; + int lon = location->lon.udeg; unsigned int latdeg, londeg; unsigned int latmin, lonmin; double latsec, lonsec; QString lath, lonh, result; - if (!has_location(loc)) + if (!has_location(location)) return strdup(""); if (prefs.coordinates_traditional) { -- cgit v1.2.3-70-g09d2