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:
authorMikhail Gorbushin <m.gorbushin@corp.mail.ru>2019-03-25 15:36:02 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2019-03-25 16:40:52 +0300
commit0d56fa17c1e64e7fdbe0d7e20a5655ffd9880f0f (patch)
treed57343e487fe7fe90d8e20b19d0a5adc6e65cb54 /routing
parentbf25034a27125187cb41321a7bf8c51c53c82c58 (diff)
[routing] review fixes
Diffstat (limited to 'routing')
-rw-r--r--routing/base/astar_algorithm.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/routing/base/astar_algorithm.hpp b/routing/base/astar_algorithm.hpp
index 3e4e0fb718..d09e3707c5 100644
--- a/routing/base/astar_algorithm.hpp
+++ b/routing/base/astar_algorithm.hpp
@@ -139,12 +139,12 @@ public:
void SetParent(Vertex const & parent, Vertex const & child) { m_parents[parent] = child; }
- bool HasParent(Vertex const & child)
+ bool HasParent(Vertex const & child) const
{
return m_parents.count(child) != 0;
}
- Vertex const & GetParent(Vertex const & child)
+ Vertex const & GetParent(Vertex const & child) const
{
auto const it = m_parents.find(child);
CHECK(it != m_parents.cend(), ("Can not find parent of child:", child));