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:
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 0eae3f8a07..f2428e5f94 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -357,11 +357,9 @@ Framework::Framework()
, m_trackingReporter(platform::CreateSocket(), TRACKING_REALTIME_HOST, TRACKING_REALTIME_PORT,
tracking::Reporter::kPushDelayMs)
, m_trafficManager(bind(&Framework::GetMwmsByRect, this, _1),
+ kMaxTrafficCacheSizeBytes,
// Note. |m_routingSession| should be declared before |m_trafficManager|.
- {bind(&RoutingSession::AddTrafficInfo, &m_routingSession, _1),
- bind(&RoutingSession::RemoveTrafficInfo, &m_routingSession, _1),
- bind(&RoutingSession::EnableTraffic, &m_routingSession, _1)},
- kMaxTrafficCacheSizeBytes)
+ m_routingSession)
, m_displacementModeManager([this](bool show) {
int const mode = show ? dp::displacement::kHotelMode : dp::displacement::kDefaultMode;
CallDrapeFunction(bind(&df::DrapeEngine::SetDisplacementMode, _1, mode));
@@ -2498,9 +2496,7 @@ void Framework::SetRouterImpl(RouterType type)
router.reset(
new CarRouter(m_model.GetIndex(), countryFileGetter,
- SingleMwmRouter::CreateCarRouter(m_model.GetIndex(),
- bind(&RoutingSession::GetTrafficColoring,
- &m_routingSession, _1))));
+ SingleMwmRouter::CreateCarRouter(m_model.GetIndex(), m_routingSession)));
fetcher.reset(new OnlineAbsentCountriesFetcher(countryFileGetter, localFileChecker));
m_routingSession.SetRoutingSettings(routing::GetCarRoutingSettings());
}