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:
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/framework.hpp
parente1668eeda0dcfd9286cb2dd70eac455b69a89665 (diff)
Split routing callback setting to the two separate framework functions.
Diffstat (limited to 'map/framework.hpp')
-rw-r--r--map/framework.hpp4
1 files changed, 2 insertions, 2 deletions
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); }