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:
authorAlex Zolotarev <alex@mapswithme.com>2013-06-04 23:32:05 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:56:12 +0300
commit75c39508889398fd27221eb30d66e35ed1a10efc (patch)
tree21cdb67cfef7cb1db865da507b0ea3a2e45e9437 /map
parent2ff92c32841d7585b12e1e5d8f816cac5fa1a2a1 (diff)
[api] Fixed "else if"
Diffstat (limited to 'map')
-rw-r--r--map/mwm_url.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/map/mwm_url.cpp b/map/mwm_url.cpp
index 67ec1ca20d..84f84318c1 100644
--- a/map/mwm_url.cpp
+++ b/map/mwm_url.cpp
@@ -57,15 +57,6 @@ bool ParsedMapApi::Parse(Uri const & uri)
void ParsedMapApi::AddKeyValue(string const & key, string const & value)
{
- if (key == "backurl")
- m_globalBackUrl = value;
- if (key == "v")
- {
- if (!strings::to_int(value, m_id))
- m_id = 0;
- }
- if (key == "appname")
- m_appTitle = value;
strings::AsciiToLower(key);
if (key == "ll")
@@ -123,6 +114,19 @@ void ParsedMapApi::AddKeyValue(string const & key, string const & value)
void ParsedMapApi::Clear()
{
m_points.clear();
+ else if (key == "backurl")
+ {
+ m_globalBackUrl = value;
+ }
+ else if (key == "v")
+ {
+ if (!strings::to_int(value, m_version))
+ m_version = 0;
+ }
+ else if (key == "appname")
+ {
+ m_appTitle = value;
+ }
m_globalBackUrl.clear();
m_appTitle.clear();
m_id = 0;