diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-03-25 15:36:02 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-03-25 16:40:52 +0300 |
commit | 0d56fa17c1e64e7fdbe0d7e20a5655ffd9880f0f (patch) | |
tree | d57343e487fe7fe90d8e20b19d0a5adc6e65cb54 /routing | |
parent | bf25034a27125187cb41321a7bf8c51c53c82c58 (diff) |
[routing] review fixes
Diffstat (limited to 'routing')
-rw-r--r-- | routing/base/astar_algorithm.hpp | 4 |
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)); |