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:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-07-27 17:50:10 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:37 +0300
commit89782be32afe692e7e6c26148b66219ffcd9ff5b (patch)
treea138b8cbe42389225d20889eeedf70ed4b40156a /map
parente1668eeda0dcfd9286cb2dd70eac455b69a89665 (diff)
Split routing callback setting to the two separate framework functions.
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp7
-rw-r--r--map/framework.hpp4
2 files changed, 2 insertions, 9 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 417d9f1720..37882bb357 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2188,13 +2188,6 @@ void Framework::SetRouterImpl(RouterType type)
m_currentRouterType = type;
}
-void Framework::SetRouteBuildingListener(TRouteBuildingCallback const & buildingCallback,
- TRouteProgressCallback const & progressCallback)
-{
- m_routingCallback = buildingCallback;
- m_progressCallback = progressCallback;
-}
-
void Framework::RemoveRoute()
{
m_bmManager.UserMarksClear(UserMarkContainer::DEBUG_MARK);
diff --git a/map/framework.hpp b/map/framework.hpp
index 48191cb773..88fe1e7d74 100644
--- a/map/framework.hpp
+++ b/map/framework.hpp
@@ -565,8 +565,8 @@ public:
typedef function<void(routing::IRouter::ResultCode, vector<storage::TIndex> const &,
vector<storage::TIndex> const &)> TRouteBuildingCallback;
typedef function<void(float)> TRouteProgressCallback;
- void SetRouteBuildingListener(TRouteBuildingCallback const & buildingCallback,
- TRouteProgressCallback const & progressCallback);
+ void SetRouteBuildingListener(TRouteBuildingCallback const & buildingCallback) { m_routingCallback = buildingCallback; }
+ void SetRouteProgressListener(TRouteProgressCallback const & progressCallback) { m_progressCallback = progressCallback; }
void FollowRoute() { GetLocationState()->StartRouteFollow(); }
void CloseRouting();
void GetRouteFollowingInfo(location::FollowingInfo & info) { m_routingSession.GetRouteFollowingInfo(info); }