Review fixes.

This commit is contained in:
Vladimir Byko-Ianko 2017-03-01 13:50:39 +03:00
parent 3a1e44f4d5
commit 2eb7b094f8
2 changed files with 3 additions and 0 deletions

View file

@ -297,6 +297,7 @@ unique_ptr<SingleMwmRouter> SingleMwmRouter::CreateCarRouter(
TCountryFileFn const & countryFileFn, shared_ptr<NumMwmIds> numMwmIds,
traffic::TrafficCache const & trafficCache, Index & index)
{
CHECK(numMwmIds, ());
auto vehicleModelFactory = make_shared<CarModelFactory>();
// @TODO Bicycle turn generation engine is used now. It's ok for the time being.
// But later a special car turn generation engine should be implemented.

View file

@ -40,6 +40,8 @@ public:
Route & route) override;
void SetCountry(string const & country) { m_country = country; }
/// \note |numMwmIds| should not be null.
static unique_ptr<SingleMwmRouter> CreateCarRouter(TCountryFileFn const & countryFileFn,
shared_ptr<NumMwmIds> numMwmIds,
traffic::TrafficCache const & trafficCache,