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:
authorExMix <rahuba.youri@mapswithme.com>2014-05-19 12:01:23 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:15:40 +0300
commite9f7e1d796d22ba2fab598ab2cd7e3d18d34f010 (patch)
tree7c2e04ce5284cfd18ba2e69db33c063b4890442d /map/mwm_url.cpp
parent0497ac2bdefb5e7af04b55b4138705d0e21ce00c (diff)
review fixes
Diffstat (limited to 'map/mwm_url.cpp')
-rw-r--r--map/mwm_url.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/map/mwm_url.cpp b/map/mwm_url.cpp
index c36cea1369..19957d99a0 100644
--- a/map/mwm_url.cpp
+++ b/map/mwm_url.cpp
@@ -67,8 +67,9 @@ bool ParsedMapApi::Parse(Uri const & uri)
ApiPoint const & p = points[i];
m2::PointD glPoint(MercatorBounds::LonToX(p.m_lon),
MercatorBounds::LatToY(p.m_lat));
- UserMark * mark = m_controller->CreateUserMark(glPoint);
- mark->InjectCustomData(new ApiCustomData(p.m_name, p.m_id));
+ ApiMarkPoint * mark = static_cast<ApiMarkPoint *>(m_controller->CreateUserMark(glPoint));
+ mark->SetName(p.m_name);
+ mark->SetID(p.m_id);
}
return true;