forked from organicmaps/organicmaps
Review fixes.
This commit is contained in:
parent
f226013467
commit
e068f63b4e
2 changed files with 8 additions and 4 deletions
|
@ -10,7 +10,9 @@ namespace routing
|
|||
{
|
||||
double const kMaxSpeedMPS = 5000.0 / 3600;
|
||||
double const kEpsilon = 1e-6;
|
||||
int const kCancelledPollPeriod = 100;
|
||||
|
||||
// Power of two to make the division faster.
|
||||
uint32_t const kCancelledPollPeriod = 128;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -112,7 +114,7 @@ IRouter::ResultCode AStarRouter::CalculateRouteM2M(vector<RoadPos> const & start
|
|||
queue.push(Vertex(rp, 0.0));
|
||||
}
|
||||
|
||||
int steps = 0;
|
||||
uint32_t steps = 0;
|
||||
|
||||
while (!queue.empty())
|
||||
{
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
|
||||
namespace routing
|
||||
{
|
||||
int const kCancelledPollPeriod = 100;
|
||||
|
||||
// Power of two to make the division faster.
|
||||
uint32_t const kCancelledPollPeriod = 128;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -78,7 +80,7 @@ IRouter::ResultCode DijkstraRouter::CalculateRouteM2M(vector<RoadPos> const & st
|
|||
for (auto const & p : dist)
|
||||
queue.push(Vertex(p.first, 0.0 /* distance */));
|
||||
|
||||
int steps = 0;
|
||||
uint32_t steps = 0;
|
||||
|
||||
while (!queue.empty())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue