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
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2013-01-14 22:05:23 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:48:44 +0300
commitfa67eda1d5d1b9502469160c995d01be24ca2350 (patch)
treeb6c211d290002f40acc78ed9de11aedaed31eaf3 /map/mwm_url.cpp
parent56ec19061b7dcdc2ee9205597ec31dbd03f32636 (diff)
[api] Added parsing of mwm:// scheme (synonym to mapswithme://)
Diffstat (limited to 'map/mwm_url.cpp')
-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 9e4fa04bf7..c020ac2dbd 100644
--- a/map/mwm_url.cpp
+++ b/map/mwm_url.cpp
@@ -36,7 +36,8 @@ bool ParsedMapApi::IsValid() const
bool ParsedMapApi::Parse(Uri const & uri)
{
- if (uri.GetScheme() != "mapswithme" || uri.GetPath() != "map")
+ string const & scheme = uri.GetScheme();
+ if ((scheme != "mapswithme" && scheme != "mwm") || uri.GetPath() != "map")
return false;
uri.ForEachKeyValue(bind(&ParsedMapApi::AddKeyValue, this, _1, _2));