From 0d56fa17c1e64e7fdbe0d7e20a5655ffd9880f0f Mon Sep 17 00:00:00 2001 From: Mikhail Gorbushin Date: Mon, 25 Mar 2019 15:36:02 +0300 Subject: [PATCH] [routing] review fixes --- routing/base/astar_algorithm.hpp | 4 ++-- 1 file 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));