Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2015-09-29 11:58:21 +0300
committerSergey Yershov <yershov@corp.mail.ru>2015-09-29 13:33:02 +0300
commitc864b4d450c1b5c588ff9d0c977869b787c78d8a (patch)
tree973bbdba609ab9f39d46bc15d9ab18d4dc3d3c6b /map
parentc91e5283b793f3c4f201f2f27cbc854de8bbfe00 (diff)
Fix warning
Diffstat (limited to 'map')
-rw-r--r--map/mwm_url.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/map/mwm_url.cpp b/map/mwm_url.cpp
index 420f5900b2..5156e35842 100644
--- a/map/mwm_url.cpp
+++ b/map/mwm_url.cpp
@@ -97,7 +97,8 @@ void ParsedMapApi::AddKeyValue(string key, string const & value, vector<ApiPoint
return;
}
- double lat, lon;
+ double lat = 0.0;
+ double lon = 0.0;
if (!strings::to_double(value.substr(0, firstComma), lat) ||
!strings::to_double(value.substr(firstComma + 1), lon))
{