diff options
author | vng <viktor.govako@gmail.com> | 2013-05-17 22:50:21 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:54:58 +0300 |
commit | 54fffdfb1bee94a6c6617f996061cef1c4fc946b (patch) | |
tree | 0f0beeb5eb3445139eb1ff193d216747f2e1bdc7 /map/geourl_process.hpp | |
parent | 7733e37c200fabc9ecbab3fa49f3eec99e1a00ba (diff) |
Do not parse whole string in "geo" url and Validate it.
Diffstat (limited to 'map/geourl_process.hpp')
-rw-r--r-- | map/geourl_process.hpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/map/geourl_process.hpp b/map/geourl_process.hpp index 43bf271b27..7a728eff58 100644 --- a/map/geourl_process.hpp +++ b/map/geourl_process.hpp @@ -11,13 +11,7 @@ namespace url_scheme { double m_lat, m_lon, m_zoom; - static double EmptyValue() { return -1000.0; } - - bool IsValid() const - { - return (m_lat != EmptyValue() && m_lon != EmptyValue()); - } - + bool IsValid() const; void Reset(); Info() @@ -26,7 +20,7 @@ namespace url_scheme } m2::RectD GetViewport() const; - // @return lat and lon in Mercator projection + /// @return lat and lon in Mercator projection m2::PointD GetMercatorPoint() const; }; |